Skip to content

Commit 6f782f1

Browse files
committed
Increase partition tooFarBlockRange from 20k to 50k
The grouping and merge threshold for dynamic contract partitions was a fixed 20k blocks, which on sparse factories produced a large number of partitions per registration wave. Raising it to 50k reduces the partition count at the cost of fetching more discardable pre-registration events per group. https://claude.ai/code/session_01HxQeuZQ11GUAoBZdbFaDuW
1 parent 3f3c067 commit 6f782f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/envio/src/FetchState.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ module OptimizedPartitions = {
200200
// We optimize for fastest data which we get in any case.
201201
// If the value is off, it'll only result in
202202
// quering the same block range multiple times
203-
let tooFarBlockRange = 100_000
203+
let tooFarBlockRange = 50_000
204204

205205
let ascSortFn = (a, b) =>
206206
Int.compare(a.latestFetchedBlock.blockNumber, b.latestFetchedBlock.blockNumber)

0 commit comments

Comments
 (0)