Skip to content

Commit

Permalink
fix: reduce brc20 processing batch size to half
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Nov 11, 2023
1 parent ba1b4f2 commit 7079dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pg/brc20/brc20-pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<DbBrc20ScannedInscription[]>`
Expand Down

0 comments on commit 7079dc0

Please sign in to comment.