Repository navigation
perf: reduce database egress and prewarm published pages - #189
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dirty GitHub projections repeatedly downloaded complete historical file statistics: the busiest observed repository returned 2.15 MB per projection, including 1.99 MB of unchanged file data. Read live metadata in the existing repeatable-read transaction and reuse digest-keyed evidence in small SHA groups; fetch only missing groups. Cache raw summary evidence separately, including patch-pruning state in commit keys. Ownership, visibility, coverage, authors and counters remain live inputs.
Share public GitHub and Codex snapshots between cron and page bundles using explicit Vercel Runtime Cache keys scoped to the project and database. Cold timeouts reuse their original read, successful outage snapshots remain available, and publication invalidation is retained. Cache reads are bounded. Optional cache writes finish outside the snapshot-read deadline, so delayed persistence cannot replace fresh results with older outage data. Codex history and view writes overlap. Compression keeps entries within provider limits, with ordinary DB reads for oversized entries. Remove obsolete Next cache wrappers, tag invalidation and unused native-cache test setup.
Publication invalidation also left the next visitor to rebuild Home and Work. Production requests took 4.18 s and 4.60 s before HTML, with Vercel logs identifying
delete_tagregeneration. Extend the existing post-publication task to warm the rendered pages after warming their data. Only production performs these concurrent GETs within the remaining invocation budget, reserving one second before its execution limit; preview, idle cron and failed snapshot reads skip them. Warming failures preserve normal regeneration and cannot fail the publication response. Visitors during regeneration or warming failure can still incur a cold render.Validation:
No UI, loading-state, PostHog or database schema changes.