Skip to content

Commit 45175e7

Browse files
committed
fix: reduce memory spent on initial sync
1 parent beb6a65 commit 45175e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

constants/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ export const MEMPOOL_PROCESS_DELAY = 100
277277
// On chronik, the max allowed is 200
278278
export const CHRONIK_FETCH_N_TXS_PER_PAGE = 200
279279

280-
export const INITIAL_ADDRESS_SYNC_FETCH_CONCURRENTLY = 128
281-
export const TX_EMIT_BATCH_SIZE = 2_000 // for our generator, not chronik
282-
export const DB_COMMIT_BATCH_SIZE = 2_000 // tamanho dos lotes para commit no DB
280+
export const INITIAL_ADDRESS_SYNC_FETCH_CONCURRENTLY = 64
281+
export const TX_EMIT_BATCH_SIZE = 1_000 // for our generator, not chronik
282+
export const DB_COMMIT_BATCH_SIZE = 1_000 // tamanho dos lotes para commit no DB
283283

284284
export const TRIGGER_POST_CONCURRENCY = 100
285285
export const TRIGGER_EMAIL_CONCURRENCY = 100

0 commit comments

Comments
 (0)