NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
TUNABILITY

Every knob, at three scopes, while it runs.

Most databases give you a config file and a restart. RasterizedDB gives you SET CONFIG and SHOW CONFIG for every setting, filter tuning down to a single column, and the same knobs as Builder methods when it is embedded.

1 / 4

The filter index, per column

The scan filter is tunable globally, per table and per column, at runtime. A CLI flag only sets the starting value of the same state.

SQL
SET FILTER max_f = 16;                          -- global
SET FILTER max_f = 12 FOR TABLE users;          -- one table
SET FILTER max_f = 24 FOR COLUMN users.email;   -- one column
SET FILTER zone_bounds = off FOR COLUMN users.uuid;
SET FILTER indexed = off FOR TABLE audit_log;
2 / 4

The server, live

Hot keys change on the running server and are saved to rasterizeddb.conf, so the next start keeps them. Startup keys are saved and applied at the next start. SHOW CONFIG lists every key with its value and whether it is live.

SQL
SET CONFIG wal.synchronous_commit = off;
SET CONFIG auto_compact.interval_secs = 300;
SHOW CONFIG;
3 / 4

What you can turn

  • Durability: synchronous_commit, WAL writer delay, checkpoint size, preallocation
  • Memory: allocator arenas, idle trim, index residency in memory or on disk, index cache, join memory cap, a low_memory preset
  • CPU: worker threads, threads per query, SIMD level, scan prefilter
  • Storage: auto-compaction, partition open budget, index storage, JSON shadow tables
  • KV: maxmemory, eviction policy, persistence interval
  • Front ends: SQL Server collation, GUID order, unique-index error number
  • Per column, with storage compression: the zstd level of each column
4 / 4

Embedded: the same knobs as methods

Rust
let db = Builder::open("./data")
    .worker_threads(4)
    .query_threads(4)
    .index_residency(IndexResidency::Disk)
    .join_memory_mb(256)
    .synchronous_commit(false)
    .config("auto_compact.interval_secs", "300")
    .start()
    .await?;
✓ page rendered in 175 µs axum + tera + htmx · no other javascript