Repository navigation
docs(perf): November benchmark results, and describe the engine as the code behaves - #2471
Conversation
aaj3f
left a comment
There was a problem hiding this comment.
@bplatz this is a really useful pass. Claude traced every figure to fluree/benchmark-db@3b8b750 and checked the behavioral claims against this head, and nearly all of it holds up. Approving to unblock, with three small accuracy fixes below before merging: the memory-budget sentence, a P=2 qualifier for the Wikidata figure, and two sibling docs that still say what this PR corrects.
My reading is that this documents EXPLAIN under a non-root policy as heuristic rather than the plan that runs, so a scoped caller can't learn hidden cardinalities from it. I think that's right; can you confirm it's intended?
Two of the corrections document code that nothing reaches anymore (PatternEstimate::Reducer, the cache's R1/R2 keys). I'd rather we delete those than describe them; more below.
Full review below:
✅ Approving to unblock: please get the three accuracy fixes in before merging. This is a careful pass: Claude checked about forty behavioral claims against the code at 0e5488a75 and traced every figure to benchmark-db, and only the items below didn't hold.
Before merging:
docs/design/performance.md:124-127: the memory-budget sentence overstates which operators charge or are capped; name the ones that charge.docs/design/performance.md:29-34: give the Wikidata-truthy figure its P=2 qualifier and its 300 s timeout.docs/design/index-format.md:278, 300-302, 320, 325-326anddocs/query/explain.md:171-174: they still state the column-width, SPOTo_typeand EXPLAIN claims this PR corrects.
Decisions on the record: My reading is that the page now publishes the November head-to-head figures against named engines, adds BSBM throughput, and drops the old durability caveat since every engine now commits durably. I think that's right, and stating the one case where QLever leads is exactly the care these claims need. Can you confirm it's intended, and say the other engines' June and September dates inline (note on line 18)?
Notes:
- This PR is the fix for a recurring shape: a behavior change leaves restatements of the old mechanism in other docs and comments. #2374 (
8b7beab06) lefthash_join.rs,where_plan.rsand this page describing OPST seeks, and wrote a new stale cache comment (join.rs:4438); #2053 (9b8fd3e89) left four comments describing column-set cache keys; the reducer tier was described whileestimate_patternhasn't produced it since at least the v4 baseline. The only compiler-enforced part of a class fix is deleting dead constructs (theplanner.rs:1030note); otherwise pointing at one canonical description, as this PR does when it cuts restated figures, is the right altitude. Not more for this PR. - The
count_plan.rscorrection is right, and it's worth noticing that the old text described a better design than the code has: key domains enforced in the types (a phantom subject/object parameter on the IR nodes) would make "anti-join a subject stream against an object key set" a compile error again. Not this PR. - #2474 (README) generates its benchmark block from the same benchmark-db commit, and its figures match this page; the two share no files and merge cleanly in either order. #2468 also touches
fast_group_count_firsts.rsin a different hunk; merges cleanly.
Adherence: patterns ✔ · performance ✔ · deployment ✔ · testing ✔ · conventions ✔ · docs accuracy ⚠️ · verification
- Patterns/abstractions: ✔ comments cut restated figures rather than updating them; two dead constructs remain documented rather than deleted (optional).
- Performance (speed first, memory second): ✔ no code change; every
.rshunk is comment-only. - Deployment targets: ✔ n/a: docs and comments only.
- Testing: ✔ nothing to test; CI on
0e5488a75(run 44632963309) is green for fmt, clippy, test, testsuite-sparql, wasm32 and python. No CI job checks the docs. - Conventions: ✔ multi-line conventional commits with full bodies;
documentationlabel. - Docs accuracy:
⚠️ three items above; everything else Claude checked holds.
Verified at 0e5488a75: every figure traced to benchmark-db 3b8b750 reports; about forty behavioral claims traced to code (planner, joins, EXPLAIN, storage, cache, write path, fast-path preconditions); relative links and anchors resolve; merge-tree against #2474 and #2468 clean.
Approving so you can merge once those three are in, but maybe worth folding in a few of the optional notes while you're there.
| against the query's budget. | ||
| fuel. The buffering operators (the hash-join build, `GROUP BY`, `MINUS`, and | ||
| the semijoin) charge the memory they retain against the query's budget; other | ||
| lanes bound their state with row caps. |
There was a problem hiding this comment.
Blocking (accuracy). This sentence reads as a complete account of query memory: every operator that buffers either charges the budget or bounds itself with a row cap. That isn't quite what the code does at this head.
Claude traced every caller of the query budget (record_alloc, fluree-db-query/src/context.rs:1115), and the list here doesn't match it: one of the operators named charges on only one of its paths, and some buffering operators are in neither group (they don't charge and have no row cap). Since this one is about resource limits, I'll send you the specifics by DM rather than list them here.
The risk is a reader, or an embedder sizing a shared host, taking this bullet as the guarantee. Since the page's point is to describe the engine as it behaves, maybe name the operators that do charge without implying the list is complete, and drop the row-cap clause. Something like:
- **Resource limits still apply.** Specialized operators check cancellation and
fuel. Several operators that hold intermediate state, including the hash-join
build, the streaming `GROUP BY` aggregate, `MINUS`, the semijoin and buffered
subquery rows, charge that memory against the query's budget.| **Wikidata-truthy** (8.19 B triples, r7a.16xlarge 64c/512 GB): Fluree geometric | ||
| mean 367.4 ms. The next engine, QLever, is 10.4× slower. | ||
| The geometric mean is SPARQLoscope's P=2 aggregate, in which a failed query counts | ||
| as twice the 180-second timeout. |
There was a problem hiding this comment.
Blocking (accuracy). The P=2 note gives DBLP-core's 180-second timeout, and the Wikidata-truthy figure just below it is also a P=2 aggregate, but against a 300-second timeout, with nothing on that line saying so.
In benchmark-db's Wikidata-truthy report (benchmarks/sparqloscope/reports/wikidata-truthy/REPORT.md, §1a) the run uses a 300 s timeout and the 14.1× is the P=2 geometric mean, so each of QLever's 14 failed queries counts as 600 s. QLever's passed-only geometric mean is 6.5× Fluree's. The page does say QLever completes 91, but "is 14.1× slower" reads as a plain latency ratio, and a reader who applies the note above it gets the wrong timeout.
Suggest making the note cover both runs, and wording the Wikidata line as the aggregate it is:
The geometric means are SPARQLoscope's P=2 aggregate, in which a failed query
counts as twice the timeout (180 seconds for DBLP-core, 300 for Wikidata-truthy).
...
geometric mean. QLever, the next engine, completes 91, and its P=2 geometric
mean is 14.1× Fluree's.There was a problem hiding this comment.
Addressed in 11a5035. The page now reports Fluree's own figures only, so there is no ratio to qualify. Each SPARQLoscope run states its timeout (180 s and 300 s), and since no query fails in either run, the page notes that the P=2 aggregate equals the plain geometric mean.
| ## Integrity, caching, and lifecycle | ||
|
|
||
| - Leaf and branch filenames (local) are derived from **SHA-256** content hashes; remote references use ContentId (CIDv1). | ||
| - Every artifact is identified by a ContentId (CIDv1 over **SHA-256**) on every storage backend; storage paths use the hex digest. |
There was a problem hiding this comment.
Blocking (completeness). This file still states two of the things this PR corrects on the performance page, so after merge the two design docs contradict each other:
index-format.md:325-326says "a column narrows to the smallest type that fits its dictionary cardinality rather than paying a fixed width". The performance page now says, correctly, that every column has a fixed width:encode_column_u64/u32/u16hard-codeelem_width8/4/2 (fluree-db-binary-index/src/format/column_block.rs:145,165,185), andencode_leafletalways uses the same width per column.index-format.md:278(o_type_const: "other orders when single-typed"),:300-302("Other orders hoist it too") and the SPOT row at:320(OType"when mixed"). This PR's ownleaflet.rs:52now says "Never set for SPOT", whichencode_leafletconfirms (leaflet.rs:124,RunSortOrder::Spot => None).
The fix is a few words each: "OPST always; POST/PSOT when single-typed" at 278, "POST and PSOT hoist it too…; SPOT always stores it" at 301-302, an unconditional OType in the SPOT row, and fixed widths per column at 325-326.
Commenting here because those lines of index-format.md are not in this diff.
| used, estimated row counts per node, hash-join selection and the reason an | ||
| alternative was rejected, and whether patterns were reordered. Under root policy, | ||
| EXPLAIN plans with the same statistics as execution. Under a non-root policy it | ||
| hides statistics, so the order and estimates it shows are heuristic and can |
There was a problem hiding this comment.
Blocking (completeness). This paragraph is right: prepare_explain_view (fluree-db-api/src/view/query.rs:1013-1021) drops stats and annotation_index for a non-root view, and explain_policy_notice (:63-80) puts a reason in the output saying so. But the user-facing EXPLAIN guide still says the opposite, at docs/query/explain.md:171-174: "the order shown is the order that runs — there is no separate explain-only ordering algorithm". Under a non-root policy that no longer holds, and the guide is where a caller debugging a plan will look.
Maybe one sentence there: under a non-root policy EXPLAIN plans without statistics (the output's reason says so), so the order it shows can differ from the one that runs.
Commenting here because explain.md:171-174 is not in this diff.
| //! staged vs committed views at the same `t`. | ||
| //! - `DictLeaf`: keyed by `xxh3_128(cas_address)`. Content-addressed and | ||
| //! immutable — no epoch/time dimension needed. | ||
| //! Scans cache a leaflet's decoded base columns (`V3Batch`), keyed by the |
There was a problem hiding this comment.
Optional. The new header is right: since #2053 (9b8fd3e89) the V3 key is (leaf_id, leaflet_idx) only (V3LeafletKey, :255-258), and a wider request widens the entry (:1007-1013). Three call-site comments still say the cache keys on the decoded column set:
fluree-db-binary-index/src/read/binary_cursor.rs:255-256("The leaflet cache keys on this set, keeping narrow and full batches distinct")fluree-db-query/src/join.rs:4438-4439(written in8b7beab06, a month after the cache changed)fluree-db-query/src/join.rs:4739-4740
It's minor and non-blocking, but if you agree it's right I'd rather see these folded in now than lost in the backlog. Commenting here because those files are not in this diff.
| reproduced from pinned S3 snapshots. | ||
| Each comparison runs every engine on the same instance type, dataset and query set, | ||
| and can be reproduced from pinned S3 snapshots. The figures below are for Fluree | ||
| v4.2.8 (WGPB: v4.2.7), measured in November 2026. Each report records the other |
There was a problem hiding this comment.
Optional. "measured in November 2026" sits right above tables where only Fluree's column is from November. Per benchmark-db's README, the other engines were measured in June 2026 (DBLP-core, Wikidata-truthy) and September 2026 (Pokec, BSBM), on the same instance types. The page does say each report records the dates, but since this section makes public comparisons against named products, I'd rather say it inline, the way #2474's generated README block does ("Other engines were measured earlier on the same instance type"). Something like "The figures below are for Fluree v4.2.8 (WGPB: v4.2.7), measured in November 2026; the other engines' figures are from their June and September 2026 runs on the same instance types." If you agree, I'd rather see it in this PR than lost in the backlog.
There was a problem hiding this comment.
Addressed in 11a5035. The page no longer reports other engines' figures, so there are no other measurement dates to state; it gives Fluree's versions and links to the README summary and benchmark-db for comparisons.
| right scan with a bound object. The nested-loop join answers that from the | ||
| predicate's POST partition, reading each leaf at most once and searching it for | ||
| each driving object. The hash join instead builds a table from the small side and | ||
| probes it with one scan of the large predicate's partition. It is chosen when |
There was a problem hiding this comment.
Optional (nit). "chosen when statistics show the probe predicate is large" covers the main arm of hash_join_cost_wins (fluree-db-query/src/hash_join.rs:140-149), but two more arms take a probe predicate as small as 1,000 rows when the driving side is small (≤ 20,000) or medium (≤ 250,000 and no larger than the probe). Maybe "when the probe predicate is large, or the driving side is small, and the probe is no more than HASH_JOIN_MAX_SCAN_RATIO times the driving side's estimate".
| 256 MiB, so cache hits on different cores do not contend on one shared | ||
| by content-addressed leaf identity and leaflet index. Entries hold base columns | ||
| only; overlay merging and time-travel replay run after the cache, so one entry | ||
| serves every `t` and overlay. The budget is split by key hash into up to one |
There was a problem hiding this comment.
Optional (nit). pool_segments rounds the core count up to a power of two before capping (fluree-db-binary-index/src/read/leaflet_cache.rs:529-533), so a 12-core host gets 16 shards; "up to one shard per core" reads as at most one. Perhaps "about one shard per core (rounded up to a power of two)".
| Source { row_count: f64 }, | ||
| /// Shrinks the stream — fraction of rows surviving (< 1.0) (MINUS, EXISTS, NOT EXISTS) | ||
| /// Shrinks the stream — fraction of rows surviving (< 1.0). No pattern | ||
| /// estimates as a reducer: MINUS, EXISTS and NOT EXISTS are `Deferred`. |
There was a problem hiding this comment.
Optional (altitude). This comment now documents a variant nothing constructs: estimate_pattern never returns Reducer (planner.rs:1176-1184), so the reducers list and try_place_reducer (:2569) in the greedy loop, and the "reducer" arms in both EXPLAIN renderers (fluree-db-api/src/explain.rs:188-190, fluree-db-query/src/explain.rs:647), are unreachable. The cache's R1/R2 entries are the same story: LeafletCacheKey still carries to_t and epoch (leaflet_cache.rs:177-199), and only tests call get_or_decode_r1/r2 (:673-679, tests from :1110).
Deleting them would make this particular drift impossible to come back, rather than documenting it. Both are pub (LeafletCacheKey is re-exported at fluree-db-binary-index/src/lib.rs:32), so it's a small breaking change for an embedder that names them, and I'd understand keeping a docs PR docs-only. But if you're open to it, I'd rather see it here than in the backlog.
| /// floor near the observed lower crossover while relying on the scan-ratio cap | ||
| /// below to reject small-driving-set pathologies. | ||
| // The thresholds below were measured when the nested-loop join's bound-object | ||
| // lane seeked OPST once per driving object. That lane now probes the predicate's |
There was a problem hiding this comment.
Praise. This note is exactly the right way to leave a tuned constant whose rationale moved underneath it. #2374's own numbers back the caution: 27 of the 260 WGPB queries it measured were still more than 1.25× slower under the nested loop than under the hash join.
The measured results were from earlier runs. They now give Fluree v4.2.8's figures (v4.2.7 for WGPB) from benchmark-db: - DBLP-core: 16.1 ms geometric mean, 25.1 ms median. - Wikidata-truthy: 270.9 ms geometric mean, with all 105 queries completed. - WGPB: 14.4 ms geometric mean over 21.1 B distinct triples. - Pokec: the large-scale means on m7a.4xlarge, where it was measured. The note on weaker durability in the comparison runs is gone: every engine now commits each write durably, checked by syscall traces. - BSBM throughput, which the page did not cover. The section says which Fluree versions and dates the figures are from, and how SPARQLoscope's P=2 geometric mean counts a failed query.
A check of the performance architecture page against the code found claims that had drifted: - Storage: columns have fixed widths, not the narrowest that fits; SPOT always carries an o_type column; xsd:decimal and big integers are arena handles with no value order; the generic scan decodes the identity columns plus o_i; the FIRST-header check compares the (p, o) prefix; content is a CIDv1 over SHA-256 on every backend. - Scan and cache: leaflet cache entries are keyed by leaf and leaflet and hold base columns, with overlay and time travel applied after; graph scoping comes from per-graph branch manifests; direct-read probe lanes reconcile novelty through ProbeOps. - Planner: no pattern is a reducer; UNION is a source; FILTER and BIND run as soon as their inputs are bound and MINUS/EXISTS keep their place; ties prefer an enabled filter and a larger hash-joinable scan before written order; the DISTINCT producer estimate is a fixed constant; the VALUES star seed is decided after reordering; EXPLAIN does not show the scan permutation and hides statistics under a non-root policy. - Joins: the bound-object lane walks the predicate's POST partition, not OPST, so the 47 s comparison no longer applies; OPTIONAL's object probe is POST; property joins fall back to a predicate scan; distinct injection also covers ASK and some CONSTRUCTs. - Fast paths: not all are FastPathOperators and some decline after bounded work; the string-prefix count needs lexically ordered ids; the count planner's types separate output kinds but not key domains. - Parallelism and writes: spatial indexes are built serially; a reindex falls back to a full rebuild in stated cases; lowering reindex-min-bytes cannot cut lag at its 100-byte default; fast paths can run under time travel and some policies; frontier traversal has more preconditions.
- The explain guide said MINUS, EXISTS and NOT EXISTS are reducers, placed first to shrink the stream. The planner classifies no pattern as a reducer: those three are deferred, placed once their variables are bound and after every pattern written before them. The category table, the placement order and the output field reference say so, and the `reducer` category, which EXPLAIN never reports, is gone. - Background indexing advised lowering reindex-min-bytes when the index lags. At its 100-byte default a reindex already starts after nearly every commit, so that helps only where it has been raised. - The index format said local files are named by SHA-256 and remote references use CIDv1. Every backend identifies an artifact by the same ContentId, a CIDv1 over SHA-256, and stores it under the hex digest.
- hash_join: the module, its thresholds and its tests explained the hash join's gain by the nested-loop join seeking OPST once per driving object, ~47 s at 100 M. That lane now probes the predicate's POST partition, so the comparison and its per-seek cost are gone. The thresholds keep their purpose, with a note that they were measured against the OPST lane and not since; where_plan's comment matches. - planner: the entry point is reorder_patterns_with_seed, and no pattern is a reducer: MINUS, EXISTS and NOT EXISTS are deferred. - leaflet: SPOT leaflets never set o_type_const. - leaflet_cache: the module header described R1/R2 entries keyed by t and epoch; scans cache base columns per leaflet, with overlay and time travel applied after. - count_plan: the IR types separate output kinds, not key domains. - fast_group_count_firsts: the OType column is skipped per leaflet from its directory, not by predicate statistics. - comparator: the OPST preference also requires an unbound predicate.
The measured-results section now gives Fluree's figures alone, each traced to the benchmark-db reports at 3b8b750: v4.2.8 throughout, except WGPB, whose latest run used v4.2.7. Comparisons with other engines stay in the README's summary and in benchmark-db itself, and the page links to the README for them. Each SPARQLoscope run states its timeout (180 s for DBLP-core, 300 s for Wikidata-truthy). No query fails in either run, so the P=2 aggregate equals the plain geometric mean. Pokec gives latency at all three graph sizes, and BSBM gives peak throughput for each mix and scale, with the Explore-and-Update peak at 1 M triples. The introduction no longer claims a comparison the page does not show, and the reproduction section lists the Fluree setup guide.
The resource-limits bullet listed four buffering operators as the ones that charge the query's memory budget and said every other lane bounds its state with a row cap. That read as a complete account, which it is not. It now names operators that charge, as examples, and drops the row-cap clause.
The index-format design doc and the leaflet module table still said two things the code does not do. encode_leaflet hoists o_type into o_type_const for OPST always and for POST and PSOT when a leaflet is single-typed, but never for SPOT, which always stores the o_type column. The doc's directory comment, the hoisting paragraph, the SPOT row of the column table and the leaflet module table now say so. Every column is encoded at a fixed width (8 bytes for s_id and o_key, 4 for p_id, t and o_i, 2 for o_type) and then zstd-compressed. The doc claimed a column narrows to the smallest type its cardinality allows, and listed a 1-byte width no column uses.
…licy The EXPLAIN guide said the order shown is the order that runs. Under a non-root policy that does not hold: prepare_explain_view drops the snapshot's statistics and annotation index, so a scoped caller cannot learn cardinalities it may not see, while execution still plans with them. The plan carries a reason saying so. The guide now states the exception where a caller debugging a plan will look.
…olumns Three call-site comments said the leaflet cache keys on the decoded column set, keeping narrow and full batches apart. The V3 key has been (leaf_id, leaflet_idx) alone since the cache moved to one decoded copy per leaflet: a request for columns an entry lacks decodes only those and widens the entry, and a narrower request is served from it. The comments in binary_cursor.rs and join.rs now say that.
The string-prefix count lane's precondition said string ids stay in lexical order until an index's first incremental build. Every reindex clears it: the full-rebuild root writer and the incremental root builder both set lex_sorted_string_ids to false, and only bulk import sets it.
The page said the hash join is chosen when the probe predicate is large. hash_join_cost_wins also takes a probe of 1,000 rows or more when the driving side is small (up to 20,000 rows), or medium (up to 250,000) and no smaller than the probe, always within HASH_JOIN_MAX_SCAN_RATIO of the driving side's estimate.
The page said the leaflet cache splits into up to one shard per core. pool_segments rounds the core count up to a power of two before the 256 MiB-per-shard cap, so a 12-core host gets 16 shards.
estimate_pattern never returns Reducer: MINUS, EXISTS and NOT EXISTS estimate as Deferred. The variant still carried a reducers list and try_place_reducer in the greedy reorder loop, a multiplier arm in the subquery estimate, and "reducer" arms in both EXPLAIN renderers, all unreachable. They are gone, so the planner can no longer be described as placing a category it never produces. Plans are unchanged: the reducer list was always empty, so the loop placed sources and expanders exactly as it does now. release_barrier_blocker takes the two remaining candidate lists. PatternEstimate is public, so an embedder that names the variant has to drop that arm.
The leaflet cache still carried the V2 two-region entries: Region 1 (core columns) and Region 2 (metadata columns), cached separately under a LeafletCacheKey of leaf, leaflet, to_t and overlay epoch, with get_or_decode_r1/r2, get_r1/r2 and contains_r1/r2. Nothing outside the cache's own tests called them; scans cache one V3 batch per leaflet, keyed by leaf and leaflet alone. LeafletCacheKey, CachedRegion1, CachedRegion2, the sparse lang and list-index columns only Region 2 used, the R1/R2 key and entry variants, and their tests are gone. The V3 batch, dictionary-leaf, leaf-directory, mmap, BM25, vector-shard, ledger-info, segment-ops and stats-view entries are unchanged. Two coexistence tests that used an R1 entry as the other entry type now check the remaining types alone. These types were public, and LeafletCacheKey was re-exported from the crate root, so an embedder that names them has to drop those uses.
0a8a5e7 to
d199dcd
Compare
Yes, intended. The EXPLAIN guide now says so too: addressed in f40048c.
Not intended: the page now reports Fluree's own figures only, and links to the README summary and benchmark-db for comparisons. Addressed in 11a5035.
Addressed in 93bf543, 11a5035, 33f0b75 and f40048c. The branch was rebuilt on |
Brings #2471 (performance docs; PatternEstimate::Reducer and the leaflet cache's R1/R2 entries removed) and #2475 (SPARQL $name parameters over HTTP, one parse per request, the range semijoin envelope skip and the SPARQL XML repeated-cell copy). Conflicts: - planner.rs: Reducer is never built on next either; take main's removal and keep next's link pins on the remaining arms. - leaflet_cache.rs, lib.rs: drop R1/R2, LeafletCacheKey and their tests; keep next's stages, ranged/byte leaf entries, fence pool and its tests, and drop the region labels from next's occupancy kinds. - sparql_xml.rs: take main's CellWriter; TermKey's list place is next's packed u64, and next's triple-term rendering moves into CellWriter::write_term. - index-format.md: main's SPOT o_type sentence with next's o_i text. - performance.md: next's leaflet directory paragraph (stored row groups, routing keys widened over history). main's new XML test awaits genesis_ledger, which is async on next.
…in's #2471 rewrote the performance and index-format docs to match main's engine. On next several of those statements are false: - Decimals of up to 17 significant digits are inline and order-preserving; only longer ones are arena handles. - o_i is a packed u64 list place (8 bytes; 4 in a v4 leaf), and the generic scan requests it only to hide list members, read history or record a union member's facts. - Small named graphs share the pooled tree: GSPO plus graph-last orders, a GId column 2 or 4 bytes wide, 40-byte history entries, delta runs for the graph-last orders, scans filtered on the graph column, only the subject probe lane, and no fast paths. - History entries are 36 bytes. - On encrypted storage the dictionary allowance and fenced-leaf pool are reserved out of the cache budget before the leaflet pool is sharded. - An index of an earlier format is rebuilt in full, and only a retryable incremental failure falls back to a rebuild.
The performance architecture page was out of date in two ways: its benchmark figures came from earlier runs, and a number of its descriptions no longer matched the code. This brings both up to date, along with the other docs and code comments that repeated the same claims, and removes two constructs that nothing reaches anymore.
Benchmark results
docs/design/performance.mdnow reports Fluree's own figures, v4.2.8 (v4.2.7 for WGPB) from benchmark-db, measured in November 2026:What the page describes
Each section was checked against the code on
main. The corrections that change what a reader would expect:OPTIONAL's object probe is POST too. The hash join's selection now gives all three arms ofhash_join_cost_wins.o_typecolumn.xsd:decimaland big integers carry no value order.tor overlay epoch. Its shard count is the core count rounded up to a power of two.reindex-min-bytescannot reduce lag at its 100-byte default.FastPathOperators, and some decline only after bounded work.Other docs and comments
docs/query/explain.mddescribed the same reducer tier and areducercategory EXPLAIN never reports, and now states the non-root-policy exception.background-indexing.mdgave the samereindex-min-bytesadvice.index-format.mdsaid local and remote content ids differ (both are a CIDv1 over SHA-256), that columns narrow to fit, and that SPOT can hoisto_type.hash_join.rs,where_plan.rs,planner.rs,leaflet.rs,leaflet_cache.rs,binary_cursor.rs,join.rs,count_plan.rs,fast_group_count_firsts.rsandcomparator.rsmade the same stale claims. Where a comment only restated a figure that would drift again, it was cut rather than updated.The hash-join thresholds were tuned against the OPST lane and have not been re-measured; a note in
hash_join.rssays so.Dead code removed
Two constructs the docs described are unreachable, so they are deleted rather than documented:
PatternEstimate::Reducer:estimate_patternnever returns it. Its reducer list andtry_place_reducerin the reorder loop, and thereducerarms in both EXPLAIN renderers, go with it. Plans are unchanged.LeafletCacheKey,CachedRegion1,CachedRegion2, their sparse columns andget_or_decode_r1/r2), which only the cache's own tests called.Both were public (
LeafletCacheKeywas re-exported fromfluree-db-binary-index), so an embedder that names them has to drop those uses.