Repository navigation
id-store: graph encoding bake-off across four real engines (#10219) - #11984
Merged
Merged
Conversation
Slice A-GRAPH-9125-03. One deterministic typed-byte corpus (6129 canonical triples) is loaded into a chunked binary file, redb tuple-key SPO/POS tables, SQLite JSONB documents and normalized SQLite BLOB rows. Each engine runs load, storage, round-trip, subject query, predicate/object query, paged stream and single-row write workloads, checked against a reference model. An independent stdlib validator regenerates the corpus, runs the harness and checks every cell, the repeated runs and the report. No universal winner is asserted. Adds rusqlite and sha2 as id-store dev-dependencies (both already in Cargo.lock). Refs #10219 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Before: the V2 storage and encoding choice for graph triples (#9125) had only a stdlib serialization toy behind it, with no measurement of a real engine.
After: one deterministic corpus of 6129 canonical typed-byte triples is loaded into four real candidates (a chunked binary file, redb tuple-key SPO/POS tables, SQLite JSONB documents and normalized SQLite BLOB rows), and each runs load, storage, byte/type round-trip, subject query, predicate/object query, paged stream and single-row write workloads three times. The report,
real-encoding-bakeoff.md, sets out the trade-offs and asserts no universal winner.The declared oracle passes:
How:
pkgs/id/crates/id-store/tests/graph_encoding_bakeoff.rsis the harness. It checks every output against a reference model and, withBAKEOFF_RESULTSset, writes the raw results. The validator is standard-library Python and independent of the Rust code. It regenerates the corpus with its own splitmix64 and canonical-CBOR encoder, recomputes the fixture hash and every expected query, page and write output, and checks the following:I spot-checked it by tampering with digests, counts, cells, versions, plans and run counts, and each one was caught.
Changed files:
real-encoding-bakeoff-results.jsonandvalidate_real_encoding_bakeoff.py.id-store/Cargo.tomlgainsrusqlite(bundled) andsha2as dev-dependencies. Both were already inCargo.lock, which only gains the two edges.No production codec, schema or index is changed. The measurement limits are listed in the report and in the results file.
Refs #10219
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.