Skip to content

Simplify transfer query caching with shared Redis coordination - #1180

Open
jasonhedman wants to merge 4 commits into
json/native-cache-setupfrom
json/native-cache-transfers
Open

jasonhedman wants to merge 4 commits into
json/native-cache-setupfrom
json/native-cache-transfers

Conversation

@jasonhedman

@jasonhedman jasonhedman commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Moves eleven transfer query functions onto the minimal cachedQuery helper. Redis shares results and coalesces cold reads across instances; the query owners retain their SQL, materialized-view access, pagination, and inferred result types.

Results expire after 30 minutes. Keys include all query arguments, including pagination and explicit dates; default current times are resolved inside the computation. The old array/date-field/pagination configuration disappears from these callsites, and stats procedures pass query inputs without warming context. Queries run at request time under the component-level Suspense boundaries introduced below this PR.

Validation: pnpm check passes independently at this layer. The complete application stack passes its production build. The separate disposable benchmark PR compares Redis, Next remote caching, and uncached reads.

@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
x402scan Ready Ready Preview Sep 25, 2026 4:17pm UTC

Request Review

@jasonhedman jasonhedman changed the title Cache public transfer queries with native remote cache Migrate public transfer queries to native remote caching Sep 8, 2026
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch from 8fa8d16 to 8de6195 Compare September 8, 2026 20:34
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch from 8de6195 to b2c4df8 Compare September 8, 2026 20:41
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch from b2c4df8 to 9a1e9f8 Compare September 8, 2026 21:19
@jasonhedman
jasonhedman removed this pull request from stack #1183 September 9, 2026 14:39
@jasonhedman
jasonhedman added this pull request to stack #1128 September 9, 2026 14:40
@jasonhedman
jasonhedman marked this pull request as ready for review September 9, 2026 14:43
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch from 9a1e9f8 to cfe5904 Compare September 9, 2026 15:02
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch 2 times, most recently from 2973047 to 5108a00 Compare September 9, 2026 15:13
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch from 5108a00 to fa413cf Compare September 9, 2026 19:14
@jasonhedman jasonhedman changed the title Migrate public transfer queries to native remote caching Simplify transfer query caching with shared Redis coordination Sep 14, 2026
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch from fa413cf to 6f6f2be Compare September 14, 2026 14:46
@jasonhedman
jasonhedman force-pushed the json/native-cache-transfers branch from 6f6f2be to 59ba5c1 Compare September 25, 2026 00:09

This branch was successfully deployed

1 active deployment
Preview — 33724310 Deployed Sep 25, 2026 by vercel[bot]
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