Skip to main content
ToraDB uses the same binaries for ingest and serving; tune behavior with environment variables. The demo applies presets via TORADB_PROFILE in demo/run.sh.

Profiles

Ingest

  • Keep index cache small so ingest does not compete with segment writes.
  • Disable warmup; no query path yet.
  • After bulk load, run toradb-ingest resume --db PATH --table TABLE to build TBM3 sidecars, lexicons, and optional route index.

Serving

  • Use TORADB_CACHE_AUTO=1 to size the mmap BM25 cache from available RAM (TORADB_CACHE_INDEX_FRACTION, default 0.20, capped by TORADB_CACHE_AUTO_CAP_BYTES, default 8GB).
  • Override with TORADB_CACHE_INDEX_BYTES when you need a fixed budget.
  • Enable TORADB_WARMUP_ON_START=1 for APIs so the first user query is not cold.

Cache variables

See also Search strategies and On-disk layout.