Repository navigation
Conversation
Route each claim by its message ID and prepare the files in parallel. Publish their generation together with composed rows and parse positions so a reader keeps a consistent snapshot through an interrupted commit.
Use the same typed engine setting for the number of active writers. Each worker takes a group of the existing files, so comparing one and eight workers changes scheduling without changing storage or queries.
Pin claim files at the start of a read and sync the surviving frontier before cleanup. Keep source provenance indexed and include logical claims when comparing old and new layouts.
Open fixtures through the archive connection and gather planner statistics through each database's writer access. Keep history comparison and daemon startup assertions covering the new layout.
The main writer holds the previous shard snapshots during durable preparation. Copy the logs after releasing those snapshots so the next write can reuse their frames. Record the shard workers' SQLite work and checkpoint progress.
Keep pending row values in a connection-owned buffer and put their lookup keys and slots under SQLite savepoints. Send owned rows to the shard writers without reconstructing them from a temporary table. Route planned message ID lookups only to their owning file.
Preserve the released index schema as snapshot 5 and record the split claim table as snapshot 6.
This branch has not been 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.
Hash each message ID to one of eight claim databases. The ordinary index writer stages claim changes in its SQLite transaction. Independent file writers prepare a durable generation, and the main index publishes that generation with the parse position and composed rows. Existing SQL predicates still seek indexed claim rows. A failure leaves the previous generation visible, and the next write replaces abandoned work.
The parse layout changes, so opening an older index recomputes its parse and dependent groups. Older published versions in a file can still serve an older pinned main snapshot. The benchmark worker count can vary without changing which file owns a message.
A hosted package build will make the candidate available for paired replay. The local compile passed before the worker-count integration. Focused tests and real replay qualification are pending.
Task: plnext-sjuf.103