Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamessimone committed Jan 18, 2024
1 parent 485ab67 commit 183369f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion rollup/core/classes/Rollup.cls
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ global without sharing virtual class Rollup implements RollupLogger.ToStringObje
}

List<Rollup> processors = transformWrappedMetadataToFullRecalcRollups(childToMetaWrapper, localInvokePoint);
// TODO if there are two or more full batch recalcs, consolidate with cabooses??
isFullRecalcApp = false;
return batch(processors, localInvokePoint);
}
Expand Down
6 changes: 1 addition & 5 deletions rollup/core/classes/RollupAsyncProcessor.cls
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,7 @@ global virtual without sharing class RollupAsyncProcessor extends Rollup impleme
}

protected String startBatchProcessor() {
Integer batchChunkSize = this.rollupControl.BatchChunkSize__c?.intValue();
if (batchChunkSize == null) {
batchChunkSize = 2000;
}
return Database.executeBatch(this, batchChunkSize);
return Database.executeBatch(this, this.rollupControl.BatchChunkSize__c.intValue());
}

protected List<SObject> getExistingLookupItems(Set<String> lookupKeys, RollupAsyncProcessor roll, Set<String> uniqueQueryFieldNames) {
Expand Down

0 comments on commit 183369f

Please sign in to comment.