Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 47525c9

Browse files
committed
fix: batch inscription location updates
1 parent 7745e22 commit 47525c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pg/pg-store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ export class PgStore extends BasePgStore {
571571
SET updated_at = NOW()
572572
WHERE sat_ordinal IN ${sql(transferredOrdinalNumbers)}
573573
`;
574-
await this.updateInscriptionLocationPointers(pointers);
574+
for (const batch of batchIterate(pointers, 8000))
575+
await this.updateInscriptionLocationPointers(batch);
575576
for (const reveal of reveals) {
576577
const action =
577578
'inscription' in reveal

0 commit comments

Comments
 (0)