Dosu LogoDosu Logo
Ask
Join our Discord
Organization avatar
slatedbPublic
SlateDB
Documents
abs
benchmarks
caching
change-data-capture
checkpoint
checkpoints
cli
clones
compaction
compatibility
compression
configuration
consistency
data-modeling
errors
faq
files
gc
gcs
introduction
logging
metrics
overview
quickstart
reads
s3
standalone-compactor
time
tuning
writes
Documentsslatedb
tuning
tuning
Type
External
Status
Published
Created
Mar 11, 2026
Updated
Nov 20, 2026
Updated by
Dosu Bot
Source
website/src/content/docs/docs/operations/tuning.mdx

SlateDB's performance characteristics are primarily determined by the object store being used. This page provides guidance on expected performance and how to tune SlateDB for your use case.

Latency#

SlateDB's write latency is dominated by object store PUT operations. The following table shows expected latencies for different object stores:

Object StoreExpected Write LatencyNotes
S3 Standard50-100msNetwork latency dominates
S3 Express One Zone5-10msSingle-digit millisecond latency
Google Cloud Storage50-100msNetwork latency dominates
Azure Blob Storage50-100msNetwork latency dominates
MinIO5-20msDepends on network and disk

Read latency dominated by the database's working set size and read pattern:

  1. Working sets that fit in local (memorya and disk) caches will respond very quickly (< 1ms).
  2. Read patterns that do sequential reads will respond very quickly (<1ms) since SST blocks are pre-fetched sequentially and cached locally.
  3. Read patterns that access keys that are (lexicographically) close to each other will respond very quickly (< 1ms) since blocks are cached locally after the first read.
  4. Reads that access data across the keyspace, and whose dataset is larger than a single machine's memory or disk will, are more likely to see latency spikes similar to object storage latency levels (50-100ms for S3 standard). Such workloads can still work well, but require more tuning, partitioning, and so on.

Throughput#

SlateDB's write throughput is limited by:

  1. Object store PUT rate limits: Most object stores limit PUT operations to 3,500 requests per second per prefix.
  2. Network bandwidth: The time it takes to upload SSTs to object storage.

Read throughput is limited by:

  1. Object store GET rate limits: Most object stores limit GET operations to 5,500 requests per second per prefix.
  2. Network bandwidth: The time it takes to download SSTs from object storage.
  3. Disk I/O: The time it takes to read SSTs from disk when the
    local object mirror or
    Foyer hybrid caching is enabled.

Tuning#

SlateDB provides several configuration options to tune performance. See slatedb::config for the current tuning surface.

Write Performance#

  • flush_interval: How long SlateDB waits before flushing the mutable WAL to object storage. Lower values reduce durable write latency but increase object-store PUT frequency.
  • l0_sst_size_bytes: The size of L0 SSTs. Larger SSTs provide better compression but take longer to upload.
  • max_unflushed_bytes: The total amount of unflushed WAL and memtable data allowed in memory before SlateDB applies backpressure to writers.
  • l0_max_ssts: The maximum number of L0 SSTs SlateDB allows before it stops flushing memtables and waits for compaction to catch up.

Writes go through a single batch-writer task, which by default runs on a worker thread, so a write from another thread pays a cross-thread hand-off. DbBuilder::with_write_runtime(...) places that task on a current-thread runtime the writing thread also drives, turning the hand-off into a task switch โ€” a large win for single- or low-concurrency writers, with no regression as concurrency rises. See examples/write_runtime.rs.

Read Performance#

  • min_filter_keys: SlateDB only builds filters for SSTs with at least this many keys. Raising it avoids filter overhead on small SSTs.
  • DbBuilder::with_filter_policies(...): Configures the filter policies used for SST construction and evaluation. Defaults to a single bloom filter with 10 bits per key. Pass BloomFilterPolicy::new(bits_per_key) to tune bloom filter density (higher values reduce false positives but increase filter size), or supply a custom FilterPolicy (e.g., prefix bloom). See the with_filter_policies docs on DbBuilder, CompactorBuilder, and DbReaderBuilder.
  • ObjectStoreMirror with SlateDbMirrorPolicy: Keeps a local copy of the compacted SSTs,
    so reads of those SSTs do not go to object storage. See
    Local Object Mirror.
  • DbBuilder::with_sst_block_size(...): Sets SST block size. Smaller blocks can help point lookups; larger blocks usually favor scans and compression.

Memory Usage#

  • max_unflushed_bytes: The primary writer-side memory bound for buffered but not yet flushed data.