From 7079dc079bfec5fbde7018dacbf20c1701d7ccb9 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Sat, 11 Nov 2023 10:24:59 -0600 Subject: [PATCH] fix: reduce brc20 processing batch size to half --- src/pg/brc20/brc20-pg-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg/brc20/brc20-pg-store.ts b/src/pg/brc20/brc20-pg-store.ts index dd0ee33a..91ad1eea 100644 --- a/src/pg/brc20/brc20-pg-store.ts +++ b/src/pg/brc20/brc20-pg-store.ts @@ -49,7 +49,7 @@ export class Brc20PgStore extends BasePgStoreModule { if (blockHeight < BRC20_GENESIS_BLOCK) continue; logger.info(`Brc20PgStore scanning block ${blockHeight}`); await this.sqlWriteTransaction(async sql => { - const limit = 100_000; + const limit = 50_000; let offset = 0; do { const block = await sql`