ChloeDB
No server · one file in an app · 17 November 2026

One file in your app, against what apps embed today

Apps keep rows in SQLite, analytics in DuckDB, vectors in LanceDB or FAISS and search in Tantivy. ChloeDB does all of it in one file. Here ChloeDB from main of 17 November, with the write and typo fixes that go out in 0.3.8, runs as a Python library against each, one at a time on one idle 8-vCPU node, all on 17 November.

First on hybrid and vector search, list pages, reads beside a writer, single-row commits and the recommendation feed. Behind SQLite on single-row reads and price updates, DuckDB on aggregates and the heavy join, FAISS on similar items at the median, and Tantivy on BM25 over the three smaller collections.

Machine
DigitalOcean 8 vCPU, Xeon Platinum 8358 at 2.60 GHz, 31 GiB
Systems
SQLite with FTS5 and sqlite-vec, DuckDB with fts and vss, LanceDB, FAISS, Tantivy
The app
A shop of 137,260 products and 4.6M reviews
Search
Five BEIR collections, 3,633 to 522,931 documents
Method
Medians over three timed passes at one client, throughput at four; every commit synced, as SQLite at FULL
This node
The CPU of the 2 and 6 November runs, and a disk as quick to sync; on 16 November's Platinum 8168 the other systems took 1.12 to 1.34 times as long
The app

Pages, joins and single-row commits faster than SQLite; single-row reads slower

ChloeDB is 7.8 to 8.3× faster than SQLite at filtered, sorted pages, 3.7× at the heavy join, 5.8 and 5.9× at reads beside a writer, and 2.8× and 180× at the two aggregates. It commits single rows 2.5× faster than SQLite at FULL (13,267 a second against 5,212) and 1.3× faster than at NORMAL, and deletes them 2.5× faster than at FULL; SQLite at FULL updates a price 2.3× faster. SQLite reads one row in 9 µs, against ChloeDB's 22 µs by key. DuckDB is fastest at aggregates and the heavy join.

Writes and streams

Indexed writes, and reads beside a stream

With a text and a vector index, ChloeDB commits single rows 5.3× faster than SQLite at FULL (3,737 a second against 711), 4.2× faster than at NORMAL, and 15 to 29× faster than LanceDB and DuckDB; with sync=False, which does not wait for the disk as SQLite at NORMAL does not, 7,397. It takes 100-row batches fastest, LanceDB 10,000-row ones. ChloeDB re-indexes a title 3.0× faster than SQLite at FULL, which updates prices 4.6× and vectors 2.0× faster. While 10,000 rows a second stream in, ChloeDB answers 8,699 reads a second, 16× SQLite's; SQLite keeps up with 8,758 (FULL) and 9,727 (NORMAL) of the 10,000 rows a second.

At 50,000 rows a second ChloeDB keeps up with 19,662 and answers 4,971 reads a second beside them; SQLite at NORMAL keeps up with 12,969 and answers 143, and LanceDB with 49,998 and answers 2. DuckDB's stream stopped at its first rate: at 1,000 rows a second its commits fell 1.7 s behind in 15 and it wrote 873 a second, and a stream stops at the first rate a system misses by more than 10% (on 16 November it went on to 44,533 at 50,000). LanceDB adds a fragment and a version with every write and nothing compacts during the run, so its updates take more than half a second each on average.

Recommendations

Similar items in under a millisecond, under filters

ChloeDB answers similar items in 0.70 ms and FAISS beside SQLite in 0.59; at the 99th percentile ChloeDB takes 1.4 ms against FAISS's 8.7, and it answers 2.3× as many a second on four threads. LanceDB takes 21× longer than ChloeDB and sqlite-vec's exact scan 552×. ChloeDB's home feed fuses vectors with a PageRank walk in one statement: 7.8 ms, 3.9× faster than LanceDB's with the walk in app code.

Against Tantivy

Tantivy as the app's store, and BM25 side by side

On a newer node (Xeon Gold 6548N) with ChloeDB of 3 November, not run again: ChloeDB commits single rows and updates 30× faster and reads rows faster; Tantivy aggregates, joins and bulk-loads faster. With the same stopwords their BM25 ties on nDCG@10.

Where ChloeDB is behind

Single-row reads, aggregates, price updates and a fast stream

  • Single-row reads. SQLite reads one by id in 9 µs against ChloeDB's 35 through SQL (22 by key), and joins a user's reviews in 25 µs against 551.
  • Aggregates. DuckDB counts reviews per brand in 5.8 ms and per month in 10.8, against ChloeDB's 41.0 and 22.1 (SQLite 114 and 3,975). DuckDB's heavy join takes 227 ms, ChloeDB's 702.
  • Price updates. 3,149 a second without indexes against SQLite's 7,149 at FULL, and 1,920 with them against 8,763. The time goes to planning and running the UPDATE, not to the sync: with sync=False ChloeDB updates 3,540 a second with indexes.
  • A fast stream. At 50,000 rows a second ChloeDB keeps up with 19,662, against LanceDB's 49,998 and the 6 November build's 45,713 on its node.
  • Similar items at the median. FAISS beside SQLite answers in 0.59 ms, ChloeDB in 0.70.
  • BM25 on small collections. Tantivy is 1.2 to 1.3× faster on scifact, nfcorpus and fiqa.
  • Against its 6 November build. Its searches take 1.32 times as long at the median as that build's did on 6 November's node. This node ran the other systems about 7% slower than 2 November's, and 6 November's ran the 2 November build 5 to 10% faster than 2 November's did, so about 1.1 to 1.2 of it came with the changes since 6 November, a little at a time. Vectors take 1.96 times as long at the default 200 candidates (recall@10 0.995 to 0.999, against 0.977 to 0.997) and 1.10 to 1.41 times at 64.
Raw data

Every number comes from these files

  • README.md: machines, builds, caveats and every table
  • part-a-1117/: one JSON report per system and part (17 November), and server/, chloedb-server 0.3.5 against the same build: the same answers, and every row there after a kill
  • part-a-0.3.5/: 16 November's run, with ChloeDB 0.3.5 on a slower node, and write-tests/, the single-row write tests that found the log fix
  • part-a/: the 2 November run, with SQLite's quora row
  • part-a-1106/ and part-a-1106-check/: ChloeDB's 6 November build and its 2 November build on 6 November's node (README, "6 November")
  • part-a-tantivy/ and part-a-tantivy-2/: the Tantivy runs, each on its own node
  • chloedb-py/bench/laptop/: the scripts, and do_part_a.sh, which runs it all on one node