Release notes

Release 0.9.2

Changes, migration notes and compatibility for this release.

Docs for v0.9.4 View source on GitHub ↗

0.9.2 is a stable release. The Rust crate, CLI, Server source, npm, and Python metadata use 0.9.2. The Git tag is v0.9.2, npm uses latest, and Python supports 3.9–3.12. Server and WebUI continue on the nightly development channel.

Shell
cargo add triviumdb@0.9.2
pip install "triviumdb==0.9.2"
npm install triviumdb@0.9.2

File formats, backups, and migration

  • The engine uses main format 15, WAL 7, document schema 2, and a unified .idx container. The container binds to the database and checkpoint identities and stores QuIVer, registered text and keywords, property indexes, graph directories, and optional compressed reranking. Corrupt committed file groups preserve the recovery materials and fail with a structured error.
  • Mmap checkpoints record SHA-256 for the generation-scoped Payload. Snapshot and generation manifests record each artifact's length, CRC32, and SHA-256. These digests catch a foreign Payload of the same length with a valid internal CRC. Verification and restore apply identical source directory rules. Publication atomically rejects existing targets, and manifest and checkpoint metadata reads have size limits.
  • Existing 53-byte checkpoint markers and older snapshot manifests remain readable. A new Mmap checkpoint writes an 81-byte marker. Older snapshots are checked against their original digests. Their Payload CRC32 cannot distinguish two valid files of the same length. See snapshots and recovery.
  • An external tool handles database format upgrades. It supports main formats 5–15, all three dtypes, and Rom/Mmap. It recovers a source copy and compares vector bit patterns, Payloads, edges, registered text, indexes, documents, named graphs, and receipts. Open database.tdb directly in the new destination after migration. SDK dimension migration also preserves unique constraints, ordinary property indexes, registered text and keywords, and the node ID high-water mark.
  • Generation reclamation checks the current generation and Reader leases by directory identity. WAL admission checks every encoded record before writing the first transaction frame and shares the 256 MiB frame limit with recovery. Replay of an older deletion preserves newly checkpointed documents and text. Recovered vector inserts become visible to indexed search.
Shell
cargo build --locked --manifest-path crates/triviumdb-migrate/Cargo.toml --target-dir target/migration
python scripts/migrate.py --source /data/old.tdb --destination /data/current --check
python scripts/migrate.py --source /data/old.tdb --destination /data/current --execute

Upgrade note. Stop processes holding the source and back up its complete file group. Use the pre-upgrade backup with older engines. See the migration guide for source requirements, disk capacity, and interrupted-run recovery.

Retrieval, documents, and graph queries

  • Rust, Python, and Node share a default retrieval threshold of 0.0. Rust SearchConfig::with_exact(true), Python exact=True, and Node exact all select exact vector recall and retain filtering, Top-K, configured post-processing, and stable ties. Use exact search for random synthetic vectors and handcrafted features. The QuIVer guide describes the evaluated semantic embedding workloads.
  • The production QuIVer build entry is batch_build, SM querying uses SmIndex, and compressed residency uses QuiverRuntime. Centered INT8/INT4, query precision, and cache configuration remain available through the supported APIs. TSNG and experimental builds live in research snapshots. EXPLAIN reports vector_access_path. See the SDK inventory.
  • Hybrid retrieval uses reciprocal ranks weighted by alpha and 1 - alpha. At 1 it returns raw vector scores. At 0 it retrieves only text. Out-of-range weights are rejected. Payload prefiltering preserves matches for null, containers, and signed zero. Hook vectors are validated after storage dtype conversion. Node Hooks reject Promises and malformed hits, and a null rerank result retains the existing hits.
  • Archived documents can return context and source evidence after reopen, with block candidates charged before expansion. One-shot ingestion checks node conflicts before writing and discards a still-pending candidate after failure. Explicit staged uploads remain resumable. Markdown HTML inside block quotes preserves actual source ranges and filters hidden content.
  • TQL resolves bare and aliased sort columns consistently. Integers outside index-key precision sort by the original value before pagination. Named-graph queries honor graph scope, and zero-hop matching retains valid self relationships. Weighted shortest paths and Yen share the actual edge-scan budget across the operator. Shortest-path prefixes use predecessor records. Reachability charges scans before filtering, and all-paths queries distinguish requested depth from budget exhaustion.
  • Aggregates and graph operators preserve representable floating-point results for SUM, AVG, average edge weights, and path products. SCC retains complete unsigned IDs, DPP avoids duplicate picks, and NMF and harmonic centrality return finite results for the hardened cases.

Interfaces, concurrency, and CLI

  • Persistence and recovery preserve binary64 precision and integer bit patterns. Node rejects any u64 vector component that cannot round-trip through a JavaScript number and identifies its position. Python and Node widen stored edge weights without rounding. CAS compares exact numbers throughout the JSON structure. Python index_info() types describe a list. Node CommonJS and ESM expose the same named exports.
  • HTTP accepts decimal-string IDs for writes and batch retrieval and preserves large integers in projections. Empty queries retain known column names. Diagnostics refer to the originally submitted UTF-8 text. A zero-capacity Prepared cache returns TDB_PREPARED_DISABLED.
  • Server propagates disconnects and deadlines through read, search, and TQL write checkpoints. Index advice is collected during the controlled read. Deletion reclaims node and edge version entries and stale ETags conflict. Ordinary JSON encoding enforces its 16 MiB response cap while serializing.
  • CLI JSONL preserves u64 vectors, edges attached to automatically assigned IDs, and edge metadata. Import applies the node and edge batch atomically. Export protects source artifacts and aliases from overwrite. A checkpoint failure after commit reports publish/committed in write and preserves available checkpoint status in details.checkpoint_write.

Validation and references

Local Windows validation covered Core, TQL, graph, concurrency, format, I/O fault, power-loss, and external migration suites, Server and CLI contracts, and installed Python and Node artifacts and type consumers. See CI for the release commit's platform matrix and the CD runs for v0.9.2 for upload results. The public prerelease record contains additional change details. The ICDE evaluation archive records the datasets, measurement conditions, and reproduction procedures.