[Push] Store file indexes under target relationship directories - #413
Open
adamziel wants to merge 2 commits into
Open
[Push] Store file indexes under target relationship directories#413adamziel wants to merge 2 commits into
adamziel wants to merge 2 commits into
Conversation
Contributor
Pull pipeline performance —
|
| Stage | PR | trunk | Δ | Status | Details |
|---|---|---|---|---|---|
playground-sqlite-db-pull |
7.23 s | 7.15 s | ⚪ +85 ms (+1.2%) | ✓ | condition=db-pull in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=lexer native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=selected trunk: condition=db-pull in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=lexer native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=selected |
playground-sqlite-db-apply |
2.86 s | 2.87 s | ⚪ -5 ms (-0.2%) | ✓ | condition=db-apply to SQLite in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=parser native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=verified native_ast=WP_MySQL_Native_Parser_Node sqlite_driver_parser=verified trunk: condition=db-apply to SQLite in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=parser native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=verified native_ast=WP_MySQL_Native_Parser_Node sqlite_driver_parser=verified |
| Total | 10.10 s | 10.02 s | ⚪ +80 ms (+0.8%) |
Numbers carry runner noise; treat single-run deltas as directional, not authoritative.
📈 Trunk performance history — commit-by-commit timeline.
adamziel
force-pushed
the
adamziel/remote-index-state-directory
branch
3 times, most recently
from
July 30, 2026 10:27
f3084d9 to
25e0c48
Compare
adamziel
force-pushed
the
adamziel/remote-index-state-directory
branch
from
July 30, 2026 10:36
25e0c48 to
77106b6
Compare
adamziel
force-pushed
the
adamziel/advance-previous-local-index
branch
6 times, most recently
from
July 31, 2026 02:05
99b3cd6 to
63f989a
Compare
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.
This puts each target URL in its own
remote-<hash>/directory, so files-pull, files-diff, and files-push share one relationship-local index without colliding with another target.The hash uses the target URL after removing URL user-info,
SECRET_KEY, and thesite-export-apiendpoint alias. It does not include the local tree. A caller which uses another local document root must use another--state-dir.The pull files now use
.remote-index.jsonl,.remote-index.next.jsonl,.local-index.jsonl,pull-plan.jsonl, andpull-index-updates.wal. WAL records carry explicit remote and local fields; replay updates the remote projection first, then the local projection, and clears the WAL only after both replacements complete.The relationship directory owns the file indexes and push state. Old index filenames are removed rather than kept as aliases.
Stacked on #406.