Skip to content

Optimize arcade-ts marketplace SQL#294

Open
ponderingdemocritus wants to merge 2 commits intomainfrom
ponderingdemocritus/sql-opt
Open

Optimize arcade-ts marketplace SQL#294
ponderingdemocritus wants to merge 2 commits intomainfrom
ponderingdemocritus/sql-opt

Conversation

@ponderingdemocritus
Copy link
Copy Markdown
Contributor

This tightens the arcade-ts marketplace SQL paths by fixing trait-filter query logic, simplifying facet-summary scans, and improving the edge client query shapes. It replaces offset pagination with keyset pagination in the edge token listing path, normalizes addresses up front so the SQL can use exact predicates, folds collection metadata fallback into a single query, and filters zero balances in SQL during ownership checks. It also adds regression coverage for the SQL builder and edge client behavior.

Verification: pnpm --filter @cartridge/arcade run ts:check and pnpm --filter @cartridge/arcade exec vitest run src/marketplace/tokens.test.ts src/marketplace/runtime.test.ts src/marketplace/client.runtime.test.ts src/marketplace/client.edge.test.ts src/marketplace/edge.test.ts src/marketplace/filters.test.ts src/modules/torii-sql-fetcher.test.ts.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arcade Ready Ready Preview Mar 10, 2026 8:31am
arcade-storybook Ready Ready Preview Mar 10, 2026 8:31am

Request Review

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.

1 participant