Repository navigation
fix(cypher): enforce relationship uniqueness in variable-length paths - #198
Conversation
Preserve edge identity across Arrow and pinned Lance scans, including namespace queries. Keep rows from the final CSR hop in small bounded batches. Add regressions for hidden-column collisions, cooperative work, and catalogs without stored IDs. Refs hyperdimensionalcomputingai#195.
Verify the terminal batch on the CSR execution plan and compare trails after edge appends, tombstones, and reopening stored indexes. Refs hyperdimensionalcomputingai#195.
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f070b261c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
prrao87
left a comment
There was a problem hiding this comment.
Thank you @MuddyBootsCode! The trail fix is the right behaviour. I reran both benchmark suites on my machine, plus our custom graph-benchmark suite, on release builds of main and this branch. My runs agreed within 1–2%, no query plans changed, and nothing regressed. The Tag/Tagclass and knows*3 speedups reproduce too, so we should be good despite your runs showing considerably more noise.
The three Codex findings from below are real regressions, and should be addressed before we merge.
Each one of the below works on main but breaks on this branch:
| Case | main |
This branch |
|---|---|---|
Arrow relationship table with a user _rowaddr column (both values 0), chain 1→2→3, [:R*2..2] |
[3] |
[] with CSR on |
X.id: Int32, Y.id: Int64, MATCH (:X {id: 1})-[:R*1..1]->(:Y)<-[:R]-(q:X) RETURN q.id |
[1, 2] |
planning error: path entities have conflicting Arrow types (CSR on and off) |
Node IDs [1, 2, 3, 4, 4], MATCH (a:N {id:1})-[:R*1..1]->(b:N)-[:R]->(c:N) RETURN c.id |
[3] |
execution error: path values require unique node IDs (CSR on and off) |
The first one comes from the CSR build reading any _rowaddr column as the edge identity. Numbering Arrow rows by position, ignoring that column, should fix it. The other two come from routing overlapping multi-segment patterns through the path-value inventory, which needs unique node IDs and property types that agree across labels. Please fall back to joins when the inventory can't take the input, and add a regression test for each case.
Suggested fixes:
- For Arrow tables, number CSR edges by row position and ignore any user
_rowaddrcolumn. - Take the path-inventory route for overlapping segments only when the inventory can handle the input (unique node IDs, compatible property types). Otherwise fall back to the existing join plan, as
maindoes.
With those fixed and a regression test for each case, this is good to merge.
Use physical row addresses only for Lance CSR input. For overlapping unnamed paths, check inventory schema compatibility and exact node key uniqueness before selecting the inventory. Verify keys on demand against the pinned snapshot and preserve ordinary expansion for incompatible inputs.
|
@MuddyBootsCode The three cases from the last review are fixed. Thanks for the tests. However, there is another issue on a common graph pattern that came up as while reviewing this, that needs further investigation and a separate fix. ProblemWhen a
The cost grows with the size of the graph, not with the number of paths the query explores: a query that starts from a single person still pays for the whole graph. Why this pattern mattersThis is the "friends of friends, then one more hop" shape: The routing itself fixes a real bug. On What to doEnforce the same uniqueness rule without building the inventory: carry the edges each variable-length path used, and check the following hop's edge against them, so the cost scales with the paths explored rather than with the graph. The CSR walk and the join fallback already track edge identity within a segment after this PR, so that may be the place to extend it. If that turns out to be a larger change than you'd like to take on here, please let me know and tag me on a follow-up issue and we can merge the PR without the cross-segment route and track the rest in that separate issue. Cheers! |
Keep relationship occurrences across segment boundaries in indexed walks and bounded join branches. Batch terminal CSR candidates, seed from a bound or selective endpoint, and preserve compatibility fallbacks. Add planner, execution and scaling regressions for hyperdimensionalcomputingai#195.
There was a problem hiding this comment.
@MuddyBootsCode, thanks for the fixes! Sorry about the repeated back and forth, but this chained multi-hop path pattern with repeated relationships is quite a common we'd expect to see in some real use cases, so it's important that we get the intent aligned with the desired outcome. Hence the nitpicking below, but I believe they need to be fixed, and the code simplified a little bit to not exceed the scope of what we need to do at this point.
On reviewing the latest head (3a2d3a9), there's definitely one correctness bug, and I think the planning logic could be simplified before we merge.
Must fix: an unrelated duplicate node ID returns the wrong answer
Before planning an overlapping pattern as one trail, can_plan_shared_trail (logical_plan.rs) checks that the graph suits the path inventory: every node ID unique and shared property types compatible. Only the inventory needs those conditions; the seeded walk and the join chain don't. When the check fails, the planner skips the walk and the chain too, and the query falls back to separate expansions, which can walk the same edge twice.
Repro, on a graph with a single edge 1–2:
cfg = GraphConfigBuilder().node_table("N", "id").rel_table("R", "N", "N", "src", "dst").build()
data = {"N": pa.table({"id": [1, 2, 9, 9]}), "R": pa.table({"src": [1], "dst": [2]})}
CypherEngine(cfg, data, use_csr=True).execute(
"MATCH (a:N {id: 1})-[:R*1..1]-(b:N)-[:R]-(c:N) RETURN c.id"
).to_pylist()
# [{'c.id': 1}] with CSR on and off; correct is [] (the result without the duplicate 9)Please fix it together with the first item in the "should fix" section below:
- In
can_plan_shared_trail, delete the twopath_inventory::property_fields(...)checks and thehas_unique_node_idscheck. The route should depend only on the pattern's shape, never on the data. - Add the repro above as a Python test expecting
[], with CSR on and off. Keep it even after the refactor: it makes sure the result never depends on unrelated rows in the graph.
Should fix: simplify the planning logic
-
Remove the inventory fallback for overlapping patterns, and the ID-uniqueness probe with it. The walk and the chain now cover the common shapes. The inventory is left with rare ones: a relationship variable on a segment, an unresolved boundary label, or more than 64 join branches without the CSR. Supporting them takes about 220 lines of async, cached, replanning code (
InventoryProbeandNodeKeyinsource_catalog.rs,unique_inventory_idsand thegraph_tablereplan inengine.rs,verify_inventory_keysinquery.rs). Please plan those shapes as separate expansions, asmaindoes, and delete the probe. If users run into these shapes, we can handle them in a follow-up. -
Merge the two CSR walkers.
TrailWalk/TrailCursor(trail_walk.rs) does everythingTraversal/TraversalCursor(csr_traversal.rs) does, with the same frames, edge-reuse check and last-hop batching. A single-segment trail is aTraversal. Please build the single-segment case as a one-segmentTrailWalkand removeTraversalCursor, so a future fix only lands once. Please re-time theknows*1..2IC queries afterwards, since one cursor streams single endpoints and the other returns groups. -
Merge the join builders.
build_trail_pathsisbuild_trail_chainwith one segment, andtrail_sequencesrepeatschain_sequences(alongsidepattern_alternatives::alternation_sequences). Please route the single-segment case throughbuild_trail_chainand remove the duplicates. One thing to carry over:trail_sequenceshandles relationship mappings without endpoint labels, whichchain_sequencescurrently declines.
Together these should remove roughly 550 lines and leave one way to plan each shape. For rare patterns like the first one above, we can always revisit depending on user need in the future, so there's no need to address all of them right up front in this PR.
Thanks!
Keep edge history across eligible anonymous segments independently of node ID uniqueness. Share one CSR cursor, one typed hop enumerator and one relational chain builder. Route residual shapes through ordinary expansion and cover label cycles, disconnected alternatives and custom occurrence IDs.
Reuse cursor buffers between input rows. Flush a single segment’s pending endpoints before yielding while preserving intermediate boundaries for multi-segment trails.
Resolve conflicts with named-path CSR walks (hyperdimensionalcomputingai#211) and all()/none() pruning (hyperdimensionalcomputingai#215): - path_ops.rs: keep both the trail builders and main's csr_route. - logical_plan.rs: pass no relationship condition at the two shared-trail calls of plan_inventory_path, since only named paths have one. - operators.md: describe main's two PathMatch routes, then trails across segments of an unnamed path in their own subsection. - test_path_csr_walk.py: an unnamed multi-type segment now takes iterative CsrExpand. Rows still match the edge inventory, and on LDBC SF1 it runs in 0.5 ms instead of 2.8 ms (knows|studyAt*1..2) and 6 ms instead of 140 ms (knows|workAt*1..3).
There was a problem hiding this comment.
Thanks for sticking with this through several rounds! Everything we needed is in here now: the trail route now depends only on the pattern, the inventory fallback and ID probe are gone, and there's one CSR walker and one join chain. The result is much easier to follow.
I merged the latest main into your branch (cf2bdd2), so you don't need to do anything further. It conflicted with #211 and #215 in path_ops.rs and operators.md. Two other changes came with the merge:
Main's new CSR-walk test expected an unnamed multi-type pattern like knows|workAt*1..3 to use the named-path walk. Your iterative CsrExpand returns the same rows and is much faster on SF1 (140 ms → 6 ms), so the test now expects your route.
The two shared-trail calls to plan_inventory_path pass None for #215's new relationship-condition argument, since only named paths have one.
I checked the merge against a brute-force trail enumerator on 300 random graphs and patterns. Every case matches, apart from the documented relationship-variable shapes.
Approving and merging now. 🚀
|
Zero worries about the back and forth lots to learn. |
Closes #195.
Cypher paths may revisit a node. Each stored relationship can appear only once in a trail, even when the query traverses it in reverse or crosses from a variable-length segment into another segment. Parallel relationships remain separate choices.
This affects queries such as friends-of-friends on LDBC SF1. The Cypher planner knows which hops belong to the same path and which table owns each relationship. The traversal keeps one edge identifier per active hop. For index-free joins an Arrow table builds an 8-byte ordinal per edge on first use and shares it for the snapshot. Lance scans can use the stored row address. A previous revision built the full path inventory for residual patterns. The current design follows the maintainer’s request to keep ordinary expansions for those cases.
Changes after maintainer review
With one edge between nodes 1 and 2, adding two unrelated rows with ID 9 used to make an out-and-back query return node 1. The regression now expects zero rows with CSR on and off. A second regression uses the same numeric ID under two different node labels. Both cases returned a spurious row on
3a2d3a9. Maintainer’s reviewThe single-segment cursor batches endpoints from different depths in a shallow hierarchy and reuses its frame buffers for successive input rows. Multi-segment output groups preserve their preceding boundary nodes. The work budget carries over between groups so a long scan still yields.
Verification
Candidate
53155bc5d5passed 765 local Rust tests and doctests (11 ignored) and 1844 Python tests and doctests (2 skipped). An independent edge-by-edge oracle checked all 216 endpoint multisets across directions, zero hops, alternating types, parallel edges and CSR settings. All 9 GitHub checks passed on this commit. GitHub checksThe regression suite also exercises Arrow, Lance, namespace reads, cached SQL GRAPH_TABLE, snapshot refresh, mixed key types, comma-separated patterns and a custom catalog without row IDs. The local checks included Rust formatting, Clippy with warnings denied, Ruff, Pyright, spelling and the strict documentation build.
The documentation runner executed 68 examples. The optional 100K-person EXPLAIN fixture was skipped. The SF1 datasets were available and used for the measurements below.
Claude reviewed the code against the maintainer’s notes, recommended approval after re-reviewing the disconnected-index and cyclic-label fixes, and checked the final performance evidence. Both issues have regression tests. The seeded query’s additional cost is reported below alongside the counts each build returned. Earlier revisions and discussion are available in the PR commits and seeded-query review.
Five SF1 queries requested by the maintainer
Each original benchmark function ran on two warm, release-built engines with matching result digests on every pair. After two warm-ups we alternated execution order for 14 timed pairs per query and storage mode. Each baseline used its own paired run. The percentages are medians of individual candidate/baseline differences. Negative is faster. Both the previous PR head (
3a2d3a9) and upstream main (32f55dc) were compared against this candidate.Cross-segment query
For person 1131 the SF1 query below returns 438,679 valid paths. Main returns 444,109. The comparison on the synthetic graph (two million nodes and four million edges, NumPy seed 195) yields 74 valid trails and 92 on main. Both candidate counts were checked against an independent traversal. Each timing is from 20 alternating pairs after three warm-ups.
The indexed SF1 lazy-Lance workload took 5.00 ms versus 3.78 ms on main, a 32.5% median paired increase while removing 5,430 invalid paths. The synthetic workload with CSR disabled also cost more, with a 27.4% median paired increase. These are visible single-query costs even when the standard suite averages stay close.
Full SF1 suites
Both upstream suites passed all 352 cases across two releases, two storage modes and two repetitions. The geometric mean gives equal weight to each query’s latency ratio. Negative is faster.
All per-query timings, runner revisions and machine configuration
Both release wheels were built on Apple M5 Max with 128 GiB, macOS 27.0.1, Rust 1.96.0 and the macOS 26.2 Command Line Tools SDK.
Each workload ran twice per wheel in each storage mode. Lower latency is faster. Machine load can affect small differences on this shared Mac.
graph-benchmark-ldbc
Runner commit
199852076ba8dceb345e18eeb2f8ac04c73f3ea1.memory
Geometric mean of per-query branch/main ratios: 1.0040.
lazy
Geometric mean of per-query branch/main ratios: 0.9988.
graph-benchmark-ldbc-complex
Runner commit
a332324f2d4660b03d1d429d8ef99767af3981e5.memory
Geometric mean of per-query branch/main ratios: 1.0099.
lazy
Geometric mean of per-query branch/main ratios: 0.9990.
To reproduce the correctness checks, run
cargo test --locked --workspaceand runuv run --no-sync pytest python/tests/test_engine_alternation.pyfrom the Python package after building its native extension. The repository benchmarkcargo bench -p lance-csr-benches --bench graph_execution -- seeded_trailexercises indexed and join trails at two graph sizes.IC12 follow-up
The first revision in this pass,
f810b55, slowed the memory expert-search query by 28.4% versus main in the two full suite runs and 35.4% on repeat. EXPLAIN ANALYZE localized the change to the tag hierarchy, which emits about 65,380 rows. Most endpoints appear before the 20-hop bound. That revision returned those endpoints to the caller one at a time. The follow-up batches them and keeps the cursor buffers for the next source row.Each number below is a median across 21 warm memory trials per workload, rotating the order of four independently verified release wheels. The full result comparison sorts the unordered tag-name collections within each returned row.
Follow-up on timing outliers
No standard query exceeded a 20% increase in mean latency across the two runs per build.
Historical measurements and discussion through 3a2d3a9
Review follow-up — seeded multi-segment trails
The traversal fix is in 14803ca. The tests, benchmarks and nine passing CI checks below cover
3a2d3a95, which includes the merge of upstream main. Maintainer’s performance findingWith CSR, the traversal starts at the bound person, carries stored edge identities across segments and batches the final hop. Without CSR, the joins compare the stored occurrence IDs across segment boundaries. The earlier compatibility cases retain their existing results.
Patterns that need to return a relationship value and index-free plans that would require more than 64 join branches still use the path inventory. Incompatible ID schemas or duplicate node IDs retain the existing expansion behavior.
Release wheels for current main (
32f55dcd), the previously reviewed PR (fe601405), and this revision were verified against their loaded native binaries. The table shows median execution time in milliseconds over seven warm repetitions after engine construction, with four requested DataFusion partitions. The benchmark checks the count against an independent edge-by-edge traversal on each graph.On indexed in-memory SF1, the revised median was 20.6× faster than the previously reviewed PR. It differs from current main by +3.84 ms and eliminates 5,430 invalid paths. Cold planning and execution on a newly constructed candidate engine took 17.08 ms for this query. Only the warm medians are compared in the table.
The synthetic graph uses NumPy generator seed 195, uniform endpoints in a two-million-node ID space, and start ID 1131. Different random graphs can have different counts. To reproduce the scaling check in the repo, run
cargo bench -p lance-csr-benches --bench graph_execution -- seeded_trail. It checks for 48 results at both 10,000 and 100,000 nodes, with CSR on and off.Validation. Rust workspace and doctests: 761 passed, 11 ignored. Python suite and doctests: 1835 passed, 2 skipped. The two original regression cases failed on the published commit because the physical plan used the inventory. Independent checks covered 216 cross-segment endpoint multisets, 20 binding/filter/scope comparisons, and 120 existing traversal comparisons. Rust formatting, Clippy with warnings denied, Ruff, Pyright, strict docs build, spelling and 68 runnable documentation blocks passed. The optional 100K-person docs-plan fixture was skipped. CI checks for this PR
Adjacent comparison of the reviewer’s query
The first table records independent per-build runs. To check timing drift on the shared Mac, both release engines were also kept warm with identical inputs. Only one query ran at a time. Build order alternated for 20 timed pairs per graph, storage mode and CSR setting after three warm-up pairs. Each query checked its count.
For comparison against current main, we give the adjacent measurements more weight because the builds alternate on the shared machine. On indexed in-memory SF1, the median difference narrowed from 3.84 ms in separate runs to 0.80 ms in adjacent runs. On the synthetic graph with CSR enabled, the comparison changed direction between runs (1.39 ms and 0.62 ms respectively, against 0.75 ms on main in both). The improvement over the prior PR is clear in both runs. The smaller difference versus main on the synthetic graph is timing-sensitive. With CSR disabled on that graph, the adjacent median was 2.59 ms higher than main. Both paired tables report the median percentage change across individual pairs.
Upstream SF1 suites
All 352 benchmark cases passed across the 30-query and 14-query suites, both storage modes, two builds and two trials. Geometric mean change in latency vs. current main (lower is faster):
The five queries named in #195 also ran in 140 adjacent timed pairs, alternating build order; all paired result digests matched.
All 88 query/storage comparisons and timing outlier rechecks
graph-benchmark-ldbc
Runner commit
199852076ba8dceb345e18eeb2f8ac04c73f3ea1.memory
Geometric mean of per-query branch/main ratios: 0.8738.
lazy
Geometric mean of per-query branch/main ratios: 0.9390.
graph-benchmark-ldbc-complex
Runner commit
a332324f2d4660b03d1d429d8ef99767af3981e5.memory
Geometric mean of per-query branch/main ratios: 0.9600.
lazy
Geometric mean of per-query branch/main ratios: 1.0197.
Follow-up on timing outliers
No standard query exceeded a 20% increase in mean latency across the two runs per build.
Evidence from earlier PR revisions
Maintainer review follow-up
fe60140 addresses the three cases in the change request.
_rowaddrvalues[3]with CSR on. Arrow uses input row positions to distinguish edges.X.idInt32 andY.idInt64[1, 2]with CSR on and off.[3]with CSR on and off.The last two cases retain the existing join behavior. A relationship may be reused across two separate segments on that fallback. For eligible graphs the shared path inventory prevents reuse across the whole pattern. CSR-on takes the uniqueness answer from the existing node index. CSR-off verifies the relevant ID column on first use, shares the result with concurrent queries, and reuses it across edge-only refreshes.
All five original regression cases failed at
7f070b2. Atfe60140, 741 Rust tests passed (11 ignored), 1,800 Python tests passed (one skipped), and 120 independent endpoint-multiset comparisons passed. Added coverage includes one-shot Arrow and Lance, directory namespaces, SQLGRAPH_TABLEplan reuse, snapshot refresh, and unrelated endpoint labels. Rustfmt, Clippy with warnings denied, Ruff, Pyright, spelling, the strict docs build and 62 runnable example blocks passed. The optional 100K-person docs fixture was skipped. Regression testsAll nine upstream CI checks passed on this commit. GitHub checks
Release measurements on the reviewed commit
Both upstream SF1 suites ran against
ba369ffandfe60140with CSR enabled. All 352 benchmark cases passed (44 queries × two storage modes × two builds × two runs). The harness compared the loaded native binary against the SHA-256 of each release wheel before timing. Lower latency is faster.The five maintainer queries also ran on warm engines, alternating builds for 14 timed pairs per query and mode. All 140 paired result digests matched.
The unnamed Tag/Tagclass query was 2.15–3.09× faster across the tested seeds, bounds and modes. The undirected three-hop
knowswalk matched all 438,709 expected rows in both modes. Median times over 12 runs were 8.43 ms vs. 9.49 ms on main in memory and 8.45 ms vs. 10.18 ms on main with lazy Lance.Both runs for every query, plus follow-up measurements for outliers
graph-benchmark-ldbc
Runner commit
199852076ba8dceb345e18eeb2f8ac04c73f3ea1.memory
Geometric mean of per-query branch/main ratios: 0.9882.
lazy
Geometric mean of per-query branch/main ratios: 0.9922.
graph-benchmark-ldbc-complex
Runner commit
a332324f2d4660b03d1d429d8ef99767af3981e5.memory
Geometric mean of per-query branch/main ratios: 1.0281.
lazy
Geometric mean of per-query branch/main ratios: 1.0402.
Follow-up on timing outliers
No standard query exceeded a 20% increase in mean latency across the two runs per build.
Original submission at
7f070b2Summary
Variable-length Cypher traversals now allow a node to be revisited through a different stored relationship and reject a second use of the same relationship in either direction. The four examples in #195 return the same rows for named and unnamed paths with CSR enabled or disabled.
On SF1, the unnamed Tag/Tagclass query from #186 ran 2.73–3.65× faster across the seeds, depths and storage modes tested. The three-hop undirected
knowswalk returned all 438,709 expected rows in 7.77 ms versus 13.34 ms onmainin memory, and 10.52 ms versus 14.37 ms on disk.Closes #195.
Problem and why it matters
With two stored edges from node 1 to node 2, a two-hop undirected traversal from 1 should return to 1 twice. Each trail takes one edge out and the other back. On
mainthe unnamed walk drops both valid returns. A directed self-loop has the opposite failure and can be counted a second time. Naming the path or adding an empty relationship type could therefore change the answer.Change
Validation
cargo test --locked --workspace— 740 passed, 11 ignored. Formatting and Clippy with warnings denied passed.main.SF1 timings
Apple M5 Max, 128 GiB, macOS 27.0.1, Rust 1.96.0, macOS 26.2 Command Line Tools SDK. Baseline
ba369ff4308acf3a93d69e45b10d147c5bb1ab65. Candidate7f070b261c57198710bb1bf993eda72dd15cbcbc. Each suite and mode ran in main, candidate, candidate, main order using the upstream runner settings. Lower latency is faster.The shared Mac showed substantial drift between baseline runs. These geometric means describe the measurements. Fourteen query/mode combinations initially exceeded +20%. The largest increase among those fourteen on repeat was +3.3%.
All 88 query/mode comparisons, both baseline trials and benchmark repository commits
graph-benchmark-ldbc
Runner commit
199852076ba8dceb345e18eeb2f8ac04c73f3ea1.memory
Geometric mean of per-query branch/main ratios: 0.8694.
lazy
Geometric mean of per-query branch/main ratios: 1.0766.
graph-benchmark-ldbc-complex
Runner commit
a332324f2d4660b03d1d429d8ef99767af3981e5.memory
Geometric mean of per-query branch/main ratios: 1.0382.
lazy
Geometric mean of per-query branch/main ratios: 1.0359.
All 14 outlier rechecks
Every query initially more than 20% slower was repeated twice per build, alternating builds with the same runner settings. Times are means in milliseconds.
The five queries named in #195
Back-to-back measurements used two warm engines and alternated execution order. The table reports the median of the individual candidate/main ratios across 14 pairs per query and mode. Every paired result matched. Lazy IC3 and IC9 initially measured +6.2% and +5.3%. Their physical plans matched
main. Across 32 additional pairs with startup and initial execution order reversed, they measured −2.0% and −1.8%. The initial slowdowns did not reproduce.Paired results for IC3, IC5, IC6, IC9 and IC11
32-pair follow-up
Named and unnamed Tag/Tagclass, raw endpoint counts, and CSR-disabled timings
The Tag/Tagclass check compares sorted distinct Tag IDs to an independent traversal of stored SF1 relationship rows, including the nullable OPTIONAL MATCH row. The two wheels ran named and unnamed queries for the lowest- and highest-degree connected Tagclass. Each number is a median of eight executions after warmup.
The raw knows traversal starts at Person 1131. It returns one endpoint row per path. Candidate counts and exact endpoint multiplicities matched the independent SF1 edge walk. Times are medians of 12 executions.
Named-path results on SF1
The named paths construct the relationship inventory. The checks compared all returned Tag IDs against the same independent calculation as the unnamed paths. The table reports the measured inventory cost.
CSR disabled
With CSR disabled, the lazy directed join measured 6.13 ms versus 5.73 ms (+7.0%). The named inventory in that mode measured 38.23 ms versus 33.45 ms (+14.3%). The cause of those two differences remains unresolved. Both are medians of seven local calls.
Release wheel and native extension hashes
5e5647c498568fdaeeba10f6fe298f2cf2e4b45beed4ae4c37e6970268ef9c1c0d32a59151ad00597989e601997cf22b93b94e46b048288b965dabe8e2032720b2aa9ee2298c7d19b4cbf866c56e4abbcac2b481bf4f8ff8d2d35fe8db0020c4d94da4b0b7f1ecd0a6d0c4f4b4365397b71ffae87fd0ff4993148c427a3866d3Claude reviewed the implementation and the measurements against the maintainer’s criteria. That review prompted the additional paired measurements for lazy IC3 and IC9.
User impact
Counts can decrease when earlier versions reused an edge on a cycle, or increase when parallel edges give distinct valid trails. With string node IDs or comma-separated patterns, the variable-length uniqueness guarantee applies within each segment. Whole-path uniqueness across overlapping segments requires resolved endpoint labels and integer IDs.