Skip to content

perf: stream marketplace migration events using iterate in indexer - #1500

Closed
sparkysolutions10-pixel wants to merge 1 commit into
ada-nwali:testnet-implementationfrom
sparkysolutions10-pixel:perf/indexer-stream-marketplace-events-1444
Closed

sparkysolutions10-pixel wants to merge 1 commit into
ada-nwali:testnet-implementationfrom
sparkysolutions10-pixel:perf/indexer-stream-marketplace-events-1444

Conversation

@sparkysolutions10-pixel

Copy link
Copy Markdown

Summary of Changes

  • Updates migrateMarketplaceSchema and migrateListingIdentifiers in indexer/src/db.ts to stream database rows using .iterate() instead of loading all rows into a JavaScript array via .all().
  • Avoids V8 heap spikes and OOM during indexer migrations on large event histories.

Closes #1444

@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown

@sparkysolutions10-pixel is attempting to deploy a commit to the Ada's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ada-nwali ada-nwali closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indexer loads every marketplace event into memory at startup

2 participants