Release Notes

What changed in each release, what it means for you, and what to watch out for when upgrading. The developer-level ledger behind this page — the same changes with their reasoning and commit ranges — is the project’s CHANGELOG.md.

Version 0.5.1 — 18 November 2026

Fixed: spatial queries missing records near the edges of large shapes

A spatial filter such as geof:sfWithin over a large polygon could silently omit records sitting well inside the shape — tens of kilometers from the boundary — while the same predicate written as a BIND expression returned them. The cause sat in the spatial index: it models shape edges as curved lines on the sphere, while geometry text treats them as straight lines in longitude/latitude coordinates. On shapes the size of a continent the two readings of the same coordinates differ by up to about 1°, and records that only the straight-line reading includes never reached the precise geometry check that would have returned them.

Long edges are now subdivided before the index sees the shape, on both the data-loading side and the query side, so the two readings can no longer disagree about which records to examine. Indexed spatial queries, expression forms, and other planar engines (JTS, shapely) now agree; workloads that had compensated for the missing records will see result sets grow — the larger answers are the correct ones.

New: edge densification setting

--geo-densify-step sets the subdivision step in degrees (default 0.1, roughly 11 km segments). 0 or false restores the previous behavior. Values below 0.0001 are rejected — finer steps buy no accuracy beyond the index’s own resolution, only indexing time. Changing the step, like the other geo index settings, requires an index rebuild. The Geospatial Data page has the full setting table.

Fixed: three query failures involving geometry values

  • STR() over a stored geometry (SELECT (STR(?w) AS ?text)) failed the whole query with an HTTP 400 error. Projections, filters, and aggregate arguments now retrieve stored geometry text through one shared mechanism. The rendered text is the canonical spelling of the stored CRS84 form; the authored spacing is not reconstructible from the stored binary value.

  • A geometry written directly in the query — a multi-row VALUES on the predicate’s variable, or a geometry inside an EXISTS — failed with an internal error about a value missing from the blob store. Query-authored geometry now resolves from the query’s own value cache instead of looking for a stored copy that was never written.

  • A geometry the engine cannot index natively — an unsupported coordinate reference system, a geometry collection above the index’s cell limit, an oversized value — silently dropped its row from a multi-row VALUES result. Such rows now resolve correctly, and a geometry value that resolves nowhere fails the query with an explicit error instead of silently skipping the row.

Watch out when upgrading

Rebuild the geo index before serving geo queries. Existing index entries were built without densification and carry no marker of which version built them, so the engine cannot detect the mismatch itself:

waratah geo rebuild-index --data-dir /path/to/data-dir

Indexed spatial query answers grow on data with large shapes — the records near long straight edges come back. The selectivity estimates the planner uses for geo queries shift accordingly; they are advisory, and answers never depend on them.

Version 0.5.0 — 17 November 2026

Faster: joins fetch their rows from storage in parallel

When a join step already knows the values a variable can take, it can ask storage to return only the rows matching those values. Those asks used to go out one small batch of intermediate results at a time, one after another. The engine now gathers the lookup values across a whole run of batches, removes duplicates, and fetches the matching rows in parallel waves — on the heaviest join query of the project’s benchmark suite, the concurrent fetch stage ran 2.16–2.47× faster than the sequential path.

Two related narrowings landed with it:

  • A join step whose value list had grown beyond the size where filtered lookups are worthwhile used to abandon the filter and read the entire table — one benchmark query read 541,505 rows to keep 62,431 matches. Large lists are now split into chunks, and every chunk keeps its filtered lookup, fetched in parallel.

  • A new guard estimates how much of a table a value list can actually match. When most rows would match anyway, a plain full read is cheaper than a very large set of targeted lookups, and the engine takes the full read deliberately.

Answers are unchanged; only the fetching strategy differs.

Leaner scan traffic

Scans no longer send back every term byte: values the query already fixed — the predicate in ?s :p ?o, a bound object, a value handed down by an earlier join step — are left out of the response and rebuilt on arrival. A value is omitted only when the receiving side can reconstruct exactly the term that would have been sent, so results are identical. Measured across the benchmark corpus, 36% of the term bytes scans produce never leave the storage process; the saving grows with the share of each pattern the query fixes.

Fixed: queries that failed on constant terms in expressions

A query could fail outright when an expression used a constant in the wrong position: BIND(<iri> AS ?x) after a pattern, constants inside COALESCE and IF, constants as aggregate arguments such as SELECT (MIN(<iri>) AS ?m), and geometry literals in any of those positions. The failure was an internal lookup of a string that was never registered; over HTTP it surfaced as a connection closed with no response. Constants now travel with the query plan and resolve without that lookup, and geometry constants render their authored spelling byte-for-byte instead of a re-canonicalized form.

Faster: under the hood of large queries

  • The per-query term dictionary — the table that assigns compact identifiers to terms while a query runs — moved to a denser layout with fused lookups. On the 100m-triple benchmark corpus, queries ran 5.5–6.8% faster with 108–206 MiB less memory, and a plan that over-estimates its term population now costs microseconds instead of milliseconds (a 250,000-slot reservation went from about 0.4 ms of writing to about 8 µs).

  • Property paths (:partOf*-style traversals) keep their working state in a compact interned form roughly ten times smaller than before; deep traversals of wide hierarchies benefit most.

  • String functions (STR, STRLEN, LANG, LANGMATCHES) resolve values from the query’s own caches before asking the string registry, so repeated lookups over cached constants and result terms disappear.

  • The distinct-value enumerations behind VALUES-driven SELECT DISTINCT queries walk storage keys without decoding terms row by row.

  • When a whole-table read that the planner estimated as small turns out much larger, the executor stops trusting the estimate for the rest of the query and switches back to the incremental path — the mispriced read is paid once, not once per batch.

  • Release binaries are built with thin LTO: about 2% faster overall on the benchmark suite, with byte-identical results.

Changed: parallel fetch width is configurable

How many join fetches a query runs concurrently — 3 by default — can now be set with WARATAH_QUERY_FETCH_CONCURRENCY in the server environment. Values 0 and 1 disable parallel fetching (the previous sequential behavior); larger values are clamped to 64. The default preserves the effective width of 0.4.2 exactly: the old internal setting of 4 funded only 3 concurrent workers through an off-by-one, and the corrected default of 3 funds the same three.

Watch out when upgrading

  • Query plans may differ from 0.4.2. The cost model that decides how each join fetches its rows was recalibrated against measured timings, so the same query can choose a different join shape. Answers are identical — the estimates only choose between equivalent plans.

  • EXPLAIN output changes: a multi-step join spine now renders as a single (concurrent-star ?key arms=N) line instead of one line per step.

  • ORDER BY over an expression of a stored string (ORDER BY STRLEN(?name)) can order differently by result size: small results keep input order when the sort key needs a string lookup, while results large enough to spill to disk re-sort by the resolved value. The spilled ordering is closer to what SPARQL specifies, but the two paths can disagree with each other until a unifying fix lands.

  • Very large property-path traversals (for example a + step out of a popular node) no longer stop with a "too many pairs" error at the old size limit: the limit is now eight times higher, so queries over deep hierarchies that failed in 0.4.2 can return results. Such walks now use more memory before giving up instead of failing early.

Version 0.4.2 — 11 November 2026

Fixed: grouped join queries that slowed down as the data grew

Analytical queries — a GROUP BY over several joined patterns — could scale badly: one benchmark query of that shape ran in half a second at the 10m-triple tier but took about 31 seconds at the 100m-triple tier, slower than engines Waratah normally beats, because the executor kept re-partitioning a join table it had already built and cached. The cached table is now reused the way the other join shapes always used it. On the project’s benchmark suite:

  • the affected query dropped from 30.7 s to 3.6 s (hot) at the 100m-triple tier, and roughly halved at the 10m tier;

  • overall suite timing improved by 9–14% at both tiers.

Query answers are unchanged in content. One observable difference: in results without ORDER BY — where SPARQL leaves the row order unspecified — the order produced by the affected query shapes may differ from earlier releases.

Changed: joins use less peak memory

The hash tables joins build now store their row lists in one flat array instead of one small allocation per key. Peak memory during query execution — the number that decides whether a server fits its RAM budget — was measured lower on every benchmark corpus: 3–10% lower on average, and up to 40% lower on the queries with the largest joins. Timing is unchanged to moderately faster, with the biggest joins gaining the most.

The previous layout remains selectable for diagnostics: set WARATAH_JOIN_TABLE=map in the server environment. An unset or unrecognized value selects the new layout (the default).

Version 0.4.1 — 10 November 2026

New: text search (opt-in)

Full-text search over string literals, switched off by default. Turn it on with waratah start --with-text or the [text] section of {config-dir}/text.toml. When enabled:

  • Jena-style FILTER text:query(?lit, "pattern") finds matching literals through a full-text index instead of scanning.

  • STRSTARTS, STRENDS, and anchored REGEX filters can use the same index to hand the planner a small candidate set — a selective prefix-join benchmark query went from 5.2 s to 28 ms at the 10m tier.

The index covers every string literal, which is why it is opt-in: it changes write latency and disk use. Deleted rows are not removed from the index; run waratah text rebuild-index after bulk deletes. Start with the Text Search page and the how-to guide.

Faster: counting queries

COUNT(*)-shaped queries and rdf:type tallies now split their work across the storage workers. On the 13.4M-row benchmark store: a count-all went from 2297 ms to 293 ms, and a type-count tally from 367 ms to 44 ms. WARATAH_COUNT_WALKS tunes the slice count (0 restores the serial walk).

Changed: serving threads are unpinned by default

WARATAH_SERVE_CORES (introduced default-on in 0.4.0) now defaults to off everywhere. Measurement on the benchmark machine showed static pinning strictly harmful for query latency tails under the new worker pool. This changes thread placement only — answers are unaffected.

Fixed: two read-path slowdowns introduced in 0.4.0

RocksDB statistics collection had been attached to every database the process opens, adding a flat per-read tax: two benchmark queries ran 21% and 34% slower than their 0.3.2 baselines. Statistics now collect only when the SST prefix-filter feature is armed; both queries returned to baseline.

Changed: domain scans on by default

The parallel domain-scan mode (previously opt-in) is now the default at the storage pool’s width. VALUES-driven SELECT DISTINCT queries are the main beneficiaries. Answers are pinned identical to the previous serial mode.

Version 0.4.0 — 9 November 2026

New: saved query library

A curated, read-only query library for tools and dashboards: put *.rq files under {queries-dir}/{repository} (or use the samples bundled with --load-demo) and clients can list them at GET /waratah/repositories/{id}/queries. The console’s Query library reads the same feed. The HTTP contract is on the query library API page.

New: large literals move to a blob store

Oversized values — very long strings, large binary literals, geometry WKB — now live in a content-addressed blob store instead of being carried through the string registry, keeping registries and index scans smaller on data with large literals. waratah blob verify checks the store’s integrity against the registry.

Faster: storage engine and parallel spill joins

  • The bundled storage engine moved from RocksDB 11.8.1 to 11.12, and the on-disk key format moved to v8 with shared-prefix compression — smaller SST files on data with repetitive keys.

  • Joins that spill to disk run their bucket loops across workers in parallel, and — fixing an oversight — queries arriving over HTTP now take that parallel path too.

  • Small scans whose size is known from statistics run on the calling thread instead of waking a worker, removing a fixed ~600 µs scheduling stall from every small lookup.

New (opt-in): per-SST prefix bloom filters

WARATAH_SST_FILTER=1 arms prefix bloom filters over the SST files, skipping files that cannot contain a sought key. On wide VALUES-driven scans of a 76 GB store it measured 15–27% faster; cold starts and memory grow, so the default stays off. A correctness bug found in the armed path (distinct rdf:type head scans truncating their results on one large store) was fixed before release.

Changed: domain-scan modes simplified

The WARATAH_DOMAIN_SEEK_UNION mode was removed — batteries measured it indistinguishable from the remaining modes, so setting it now warns once and is ignored. Constraints are visited in key order on every mode, which also fixes a paging bug where constraints sorting before a resume cursor could be dropped. VALUES-bound SELECT DISTINCT queries now take the domain-scan path instead of streaming every row through dedup.

Fixed: SPARQL parsing correctness

The SPARQL front-end upgraded to sparopt 0.3.9, pulling in upstream parser fixes for queries that previously returned wrong results, plus recalibrated cardinality estimates. Separately, writes binding an invalid term to the object of rdf:type are now rejected at the write funnel instead of being stored.

New: AI services (opt-in)

Waratah can now act as a gateway between AI clients and your data. The feature is off by default; turn it on with:

waratah start --with-ai

(or enabled = true in the [ai] section of your configuration). When enabled you get:

  • GET /waratah/ai — discovery of the available AI endpoints and upstream models.

  • An LLM egress proxy at /waratah/ai/upstreams/{id}/… — requests are forwarded only to upstreams you have allowlisted, and API keys stay with the client unless you configure one for an upstream.

  • GET /waratah/repositories/{id}/ai-context — a schema summary of a repository, sized for AI clients that need to understand your data before writing queries.

With the feature off, these endpoints answer with a structured "not implemented" response — nothing else about the server changes. The full HTTP contract is in the AI services HTTP contract page.

New: documentation site and container image

If you are reading this page, you have found the first one: the project documentation is now a versioned, searchable site built with Antora, with dark mode included. Release builds also assemble the rustdoc API documentation alongside it. A container image build (scripts/build_container_image.sh) ships with a healthcheck and a reproducible Python interpreter, so waratah can run in containers without a host toolchain.

Changed: the command line

The waratah dev … commands are gone — the cluster commands are now top-level, and starting a cluster daemonizes by default:

waratah start --load-demo        # starts the cluster, returns once it is up
waratah stop                     # ends the background cluster
waratah standalone --load-demo   # one process, stays attached

waratah start keeps the cluster running in the background and writes logs to {data_dir}/logs/; use --foreground if you want it attached to your terminal (service units and CI should use --foreground or --debug). The full command surface is in the Command Line page. If you have scripts that called waratah dev …, they need updating — that is the one breaking change in this release.

Watch out: query results that changed (correctly)

Three narrow corrections to how terms compare. You only notice them if your data contains the relevant values, and in every case the new answer is the correct one:

  • COUNT(DISTINCT …) over NaN float/double values no longer counts one value twice.

  • Distinct lexical forms stay distinct terms: +0.0 and -0.0, and NaN values, keep separate identities in sameTerm-style comparisons. Plain FILTER = is unchanged — +0.0 = -0.0 is still true and NaN = NaN is still false, exactly as SPARQL specifies.

  • Two timestamp literals for the same instant written with different UTC offsets are no longer whole-term equal — they are different lexical terms.

The reasoning and the full semantics are documented in the SPARQL deviations page.

Faster: geo queries

Plan costing now matches what the engine actually executes, and geo queries reorder accordingly — same answers, far less work. On the project’s benchmark corpus: transects across the 100m-triple tier went from 412 ms to about 14 ms (hot), and distributions-intersect from 397 ms to about 27 ms. If you diff explain output between versions, expect different join orientations on geo queries; results are identical.

Operator notes

  • waratah geo rebuild-index is dramatically faster — minutes at the 10m-triple tier instead of hours, scaling linearly instead of quadratically. If a rebuild was ever interrupted on an older version, run it once more: interrupted rebuilds now mark the index untrusted instead of silently serving a partial one.

  • New: waratah geo census reports the geo index’s posting counts per level, useful for watching index size and estimator behavior.

  • The RocksDB binding is now built from an in-tree fork; building from source needs a C toolchain (clang or g).

Version 0.3.1 — 25 October 2026

New: large joins spill to disk instead of running out of memory

Joins whose build side does not fit in memory now partition to the spill root and merge back in order — the Grace hash join. Memory stays bounded no matter how large the join grows, and joins that turn out to be selective stay in RAM. Spill files go to --spill-dir (defaulting to {data_dir}/spill when a data dir is set); without a data dir the system temp directory is used, which is RAM-backed on many systems — Waratah logs a warning at startup if so, and a --spill-dir on real disk is the fix.

The spill path was hardened through several review rounds: serial and parallel execution produce identical row order, selective outputs return in-RAM, and spilled data is schema-checked.