Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Share expensive summary folds across stored catch-up commits - #7654

Draft
Sinity wants to merge 2 commits into
masterfrom
perf/summary-catchup
Draft

Sinity wants to merge 2 commits into
masterfrom
perf/summary-catchup

Conversation

@Sinity

@Sinity Sinity commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Historical inputs can change a session again long after the two-second settling interval. The full stored replay folded 63.13 million rows, with 34.42 million in logged runs that had a later logged fold for the same session.

While a stored-input sweep runs, the worker defers background changes that invalidate at least 4,096 rows at saved fold positions. Later commits share the earliest pending position. Other sessions continue to settle. Foreground priority now commits with its pending mark, so rollback restores both together and live changes and requested reads remain eligible. Ending a sweep wakes the same summary worker.

Focused job 8715 and the required hosted check passed at 3579824. The fixtures cover large historical refolds, small-session progress under the same sweep, requested reads, unfinished live input and the drain after the sweep. All recorded index schemas open under the additive update.

On the same 10.386 GB stored archive, job 8714 recorded 13,297 folds over 2,613,073 rows. The previous run recorded 14,395 folds over 2,711,478 rows. Both produced 1,359,157 messages and emptied the derived queues. Elapsed time was 369.47 seconds with the candidate and 311.11 seconds previously under different host load. One listing and one word search failed in the candidate run. The driver retained their classes and counts. A separate 95-input replay isolates repeated historical changes in one large session.

Task: plnext-sjuf.105

Historical changes can invalidate a large fold several times before their sweep ends. Keep the earliest pending change through the sweep while cheap work and foreground requests continue, using the saved fold positions to bound the cost of the scheduling decision.

This branch has not been deployed

No deployments
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