How SynergyDB works

This page is for an engineer evaluating SynergyDB. It explains the storage engine, the transaction layer, indexes, vectors and full text, and where each part lives in the source tree. It is written from the repository at main @ 8a689c5c (2026-11-30). This is SynergyDB V1.0.

Where a fact comes from a status entry, that entry describes one branch or PR on the date shown. Some entries say "PR: (pending)" or "see branch", so the change may or may not be in the build you run. Check the entry's branch against your build.


One engine, many wires

SynergyDB is a single process with a single storage engine: an LSM tree with one MVCC transaction layer. That engine holds relational tables, JSON documents, property graphs, key-value data, time series and vector embeddings. On top of it SynergyDB serves the network protocols ("wires") of PostgreSQL, MySQL, MongoDB, Neo4j (Bolt), Redis, Cassandra, Kafka, SQL Server, Oracle and others, so existing drivers and tools connect without code changes (source: README.md, intro).

Every wire reads and writes the same storage engine (source: README.md, "Engine features"). Since 2026-11-24, all wires and sessions also share one lock table and one commit clock. Before that, each wire had its own, so writes through different wires never blocked each other (source: docs/status/2026-11-24-concurrent-write-locks.md).

"Same store" does not mean every wire sees every other wire's data as its own kind of object:

  • MongoDB-wire documents live under their own key space and are not SQL relations. A SELECT over the PostgreSQL wire cannot see them (source: test-scripts/cross-model-acid/RESULTS.md, W5b).
  • There are two graph stores. Cypher run through the SQL engine writes __graph_nodes__; the Bolt wire keeps its own in-memory graph persisted to _bolt_nodes / _bolt_relationships. They do not see each other's writes (source: test-scripts/cross-model-acid/RESULTS.md, F4).
  • Some wires keep a working copy in memory on top of the engine: the Bolt graph (source: test-scripts/cross-model-acid/RESULTS.md), each CouchDB database (source: README.md, Known gaps), the Elasticsearch indices with a per-document write journal (source: docs/status/2026-11-27-es-write-journal.md), and the last 3 hours of Prometheus samples (source: README.md, Known gaps).
  • On 2026-11-27 a soak run found that same-named tables created over PostgreSQL, MySQL, Cassandra, ClickHouse and MongoDB in one database collide (source: docs/status/2026-11-27-multi-day-soak.md).

Not verified: no later status entry in the snapshot says the cross-wire table-name collision was fixed. Treat it as open and give each wire its own table names or database.

The explicit bridge between wires is the vector service, described under Vectors and embeddings.


Storage and durability

Internals from the code: storage overview, WAL, compaction, recovery.

Settings

These are the [storage] settings in src/config.rs. Every key can also be set as an environment variable named SYNERGYDB_<SECTION>_<KEY>, for example SYNERGYDB_STORAGE_DATA_DIR (source: src/config.rs).

Setting Values Default Notes
wal_sync_mode every_write, periodic, no_sync every_write Any other value silently falls back to every_write
compression lz4, zstd, none lz4 Any other value falls back to lz4
memtable_size size string 64MB (the Docker image config uses 128MB)  
compaction_size_amp_ratio number 0.5 Triggers a throttled full compaction; 0 disables. Env SYNERGYDB_COMPACTION_SIZE_AMP
wal_retention_bytes size or unlimited 1 GB Flushed WAL segments no backup still needs are pruned. Env SYNERGYDB_WAL_RETENTION_BYTES
encryption_enabled bool off AES-256-GCM for SST data at rest

(source: src/config.rs, docker/synergydb.toml)

The README lists the storage features as: LSM tree with a write-ahead log, LZ4/Zstd compression, background compaction, and cached column projections for large analytic scans (source: README.md, "Engine features").

After the first backup, WAL written since the newest backup is held on disk until the next backup (source: docs/status/2026-11-24-backup-restore-drill.md).

What wal_sync_mode does

  • every_write is the default and fsyncs the WAL. Concurrent writers share a group-commit fsync round (source: docs/status/2026-11-24-redis-single-write-latency.md). The Memcached wire is an exception by default; see below.
  • no_sync hands buffered WAL records to the operating system without an fsync (source: docs/status/2026-11-24-redis-single-write-latency.md).
  • periodic is accepted by the config (source: src/config.rs).

Not verified: no file in the snapshot describes or tests periodic mode, so its sync interval and loss window are unknown.

The PostgreSQL benchmarks in the README were run with every_write (source: README.md, "Performance against PostgreSQL 16").

Crash recovery as tested

Most differential suites have a restart phase: SynergyDB is killed with kill -9, restarted, and a fresh connection re-reads everything and compares it with the reference database (source: README.md, "How we prove a wire"). Restart-phase results on the 2026-11-30 run include PostgreSQL 21/21, MySQL 25/25, Redis 39/39, Cassandra 73/73, Neo4j 22/22 and InfluxDB 218/218 (source: README.md, "Wire scorecard").

Other recovery evidence:

  • 60,000 Redis writes from 10 clients under no_sync, then kill -9: every write was kept (source: docs/status/2026-11-24-redis-single-write-latency.md).
  • A local soak with kill -9 every few minutes measured recovery at 19.4 s average and 70.2 s maximum (source: docs/status/2026-11-27-multi-day-soak.md).
  • The Meridian all-wire app runs a soak that kills SynergyDB with SIGKILL on a timer and checks that every acknowledged write is present and every in-flight write is all or nothing (source: apps/meridian/README.md).

Per-wire exceptions:

  • Memcached: by default writes are persisted by a background writer, so kill -9 can lose recent writes. In the a3232c9 proof run the restart check read back 9/23 items in this mode. SYNERGYDB_MEMCACHED_DURABILITY=sync lost 0 acknowledged writes over 3 rounds (source: README.md, Known gaps).
  • MySQL: the README says AUTO_INCREMENT values are reserved 32 at a time and can jump by up to 32 after kill -9. The code writes each MySQL value durably as it is issued (a multi-row INSERT reserves exactly its row count), so it resumes at last + 1; the 32-value blocks are used by PostgreSQL SERIAL, identity and nextval (source: src/query/engine.rs, next_autoincrement; src/storage/mod.rs, advance_i64_counter_exact_by). Detail: Sequences.
  • Redis and Bolt transactions in flight at kill -9: see Cross-model transactions.

Not verified: kill -9 leaves data already handed to the operating system in place. None of the cited tests simulates power loss or an OS crash, so the no_sync result above says nothing about those cases.

Not verified: the 2026-11-24 status baseline lists "LSM compaction under load" as correctness ok, performance untested (source: STATUS.md).


Transactions and isolation

Internals from the code: MVCC, isolation levels, locking.

Isolation levels

  • READ COMMITTED is the default (source: README.md, "Engine features").
  • REPEATABLE READ and SERIALIZABLE take real snapshots. Lost updates raise SQLSTATE 40001 and write skew is prevented (source: README.md, Known gaps, PostgreSQL).
  • Caveat: compaction keeps only the newest version of a key. A snapshot held open across a compaction of a key it overwrote is not protected (source: README.md, Known gaps, PostgreSQL). Long-running REPEATABLE READ or SERIALIZABLE transactions are the case to watch.
  • SQL Server wire: readers see the last committed value instead of blocking on an uncommitted write. It behaves like SQL Server with READ_COMMITTED_SNAPSHOT ON, not the default locking READ COMMITTED (source: README.md, Known gaps; docs/status/2026-11-24-concurrent-write-locks.md).
  • Redis wire: MULTI/EXEC is not isolated from other clients while it runs (source: README.md, Known gaps).
  • gRPC wire: transactions at 3 isolation levels were tested against the same SQL run on PostgreSQL 16 (source: README.md, "Wire scorecard").

One read snapshot per statement

PostgreSQL gives every statement one snapshot, even in READ COMMITTED. Before 2026-11-24, a SELECT SUM(balance) on SynergyDB could see a concurrent transfer half applied. Now every read-only statement (autocommit or inside a READ COMMITTED transaction) takes a statement snapshot, and the snapshot holds back MVCC garbage collection for the versions it reads (source: docs/status/2026-11-24-statement-snapshot.md).

  • A single-row primary-key lookup skips the snapshot, because one storage read is atomic.
  • A multi-row autocommit INSERT is seen whole or not at all.
  • Measured over the PG wire: 0 bad sums in 260k under concurrent transfers, against 25 bad in 179k before.
  • Open gap: autocommit multi-row UPDATE and DELETE still write row by row, so a concurrent snapshot can see part of one. Transactions and multi-row INSERT are atomic to readers.

(source: docs/status/2026-11-24-statement-snapshot.md)

Concurrent writers

Writers take row locks and uniqueness-key locks (primary key, UNIQUE columns and groups) and wait for the holder. What happens next follows each reference database:

Situation Behaviour
READ COMMITTED, conflicting INSERT Duplicate-key error (23505 / 1062 / 2627 / ORA-00001), or success if the holder rolled back
READ COMMITTED, conflicting UPDATE/DELETE Applies on top of the committed row and re-checks its WHERE
PostgreSQL REPEATABLE READ / SERIALIZABLE 40001 when the row changed after the snapshot
Oracle SERIALIZABLE ORA-08177
MySQL and SQL Server REPEATABLE READ / SERIALIZABLE Waits, then writes the latest version
Deadlock, PostgreSQL and Oracle Checked after 1 s; the waiter that finds the cycle fails (40P01 / ORA-00060)
Deadlock, MySQL and SQL Server Checked at once; the requester's transaction rolls back (1213 / 1205)
Lock timeouts PG lock_timeout (55P03), MySQL innodb_lock_wait_timeout (1205), SQL Server SET LOCK_TIMEOUT (1222)

Two-session suites against the reference databases: PostgreSQL 28/28, MySQL 20/20, Oracle 13/13, SQL Server 13/14 (the miss is the reader-blocking difference above). Known differences: Oracle detects deadlocks after about 3 s, SynergyDB after 1 s; InnoDB-style SERIALIZABLE shared locks are taken only for single-table reads, not joins or subqueries (source: docs/status/2026-11-24-concurrent-write-locks.md).

Savepoints

Since 2026-11-24 a savepoint is a set of positions into append-only logs instead of a copy of the transaction's write buffer, and rollback replays an undo log backwards. Wires that take a savepoint per statement (Oracle statement-level rollback, T-SQL TRY blocks, PL/SQL handlers) no longer slow down as a transaction grows: a 10,000-row executemany over the Oracle wire went from 6.4 s to 0.28 s (source: docs/status/2026-11-24-fast-savepoints.md).

Transactional DDL

CREATE, ALTER, DROP, COMMENT and TRUNCATE inside a transaction block are undone by ROLLBACK, ROLLBACK TO SAVEPOINT and a failed COMMIT. Stated limits: the restore writes prior bytes directly, so a concurrent session's commits to rows that a rolled-back DDL rewrote are overwritten; RLS policies, roles and other non-storage state are not undone; setval() / nextval() are not transactional, as in PostgreSQL (source: ROADMAP.md, item 1.64).

Scan epoch pin (memory, not isolation)

Memtables are lock-free skiplists whose removed nodes are freed only when no thread is pinned at an older epoch. A scan used to hold one pin for its whole run, so a query running for minutes stopped memory reclamation for the whole process. Since 2026-11-30 a scan copies each memtable's matching entries under a short pin and drops the pin before merging (source: docs/status/2026-11-30-scan-epoch-pin.md).

Not verified: that entry did not rerun the differential suites or the benchmarks, and notes that read-heavy benchmarks should be rechecked (source: docs/status/2026-11-30-scan-epoch-pin.md).


Cross-model transactions

The measured results are in test-scripts/cross-model-acid/RESULTS.md, dated 2026-07-04. That file predates many later changes; the Bolt-related parts are partly superseded by the 2026-11-30 entry discussed below.

How it works

Relational rows, JSONB documents (JSONB columns of tables) and vectors (VECTOR columns) are all rows in engine relations. A SQL session buffers its writes in MVCC and applies them at COMMIT as one atomic batch. Cypher CREATE run through the SQL engine compiles to INSERTs into __graph_nodes__ and joins the same batch (source: test-scripts/cross-model-acid/RESULTS.md).

What shares one transaction (as of 2026-07-04)

Combination in one transaction Result Path
Relational + JSONB document Proven atomic Engine tests and PostgreSQL wire
Relational + vector Proven atomic; vector search does not see uncommitted rows Engine and PostgreSQL wire
Relational + JSONB + vector Proven atomic, including a mid-transaction reader Engine and PostgreSQL wire
Relational + graph (Cypher CREATE inside a SQL transaction) Proven atomic PostgreSQL wire only
Graph-only transaction over Bolt Atomic, READ COMMITTED for created nodes Bolt wire
MongoDB-wire document + SQL row Not possible. The Mongo key space is not a SQL relation  
Relational statement inside a Bolt transaction Not possible. Bolt runs only Cypher  
Bolt-wire graph + engine graph Not shared. Separate stores; SQL writes into _bolt_nodes are not seen by Bolt sessions until the in-memory graph reloads  

(source: test-scripts/cross-model-acid/RESULTS.md)

In short: "document" inside a cross-model transaction means JSONB over SQL, and "graph" means Cypher run through the SQL wire, not Bolt. MongoDB-wire writes are transactional on their own: each autocommit command is one atomic MVCC batch, and multi-document transactions use startTransaction (source: test-scripts/cross-model-acid/RESULTS.md, F3).

Not verified: RESULTS.md does not cover Redis, Cassandra, Kafka, Elasticsearch or the other wires. No file in the snapshot shows any of them sharing a transaction with SQL.

Note on RESULTS.md itself: its closing section ("What this means for the deck") still says the MongoDB wire is outside MVCC and that the Bolt dirty read stands. Its own findings F2 and F3 say both were fixed on 2026-07-04. The findings sections are the more specific record.

Crash atomicity: Redis MULTI/EXEC, Lua scripts, Bolt execute_write

The README, as of 2026-11-30, lists two open bugs (source: README.md, Known gaps, "Open bugs being fixed"):

  • A Redis Lua script or MULTI/EXEC running at kill -9 can come back half-applied.
  • A Neo4j execute_write transaction running at kill -9 can come back half-applied, and one acknowledged transaction was lost in a Meridian run.

A status entry dated the same day, on branch fix/crash-atomic-redis-bolt with its PR marked pending, describes a fix (source: docs/status/2026-11-30-crash-atomic-redis-bolt.md):

  • Redis: writes made inside EXEC or a script (EVAL, EVALSHA, FCALL) are held back and written as one batch with one WAL record and one fsync before the reply. Crash test: old code 0/4, fix 8/8 over 28k transfers.
  • Bolt: write transactions take turns through one write lock on the graph, held from the first write to COMMIT or ROLLBACK, with a 30 s wait limit. RESET and a dropped connection roll back an open transaction. Crash test: 8/8 over 14.5k transfers with 8 writers.
  • Costs and remaining gaps it states: Bolt write throughput is now one transaction at a time (not benchmarked); Bolt's in-memory graph is still not MVCC, so other sessions can see a writer's uncommitted property changes (created nodes and relationships stay hidden); Bolt writes outside the Cypher write pipeline (schema commands, some procedures) do not take the write turn.

Not verified: the README on Nov 30 still lists both bugs as open, and the snapshot does not show whether this branch is merged into main @ 8a689c5c. Until you confirm the fix is in your build, assume Redis transactions and scripts and Bolt write transactions can be half-applied after a crash.

The remaining Bolt read gap also narrows the 2026-07-04 result above: that test checked created nodes only, not property changes.


Indexes and the optimizer

  • Index types: B-tree secondary indexes (equality and range), GIN for JSON and array containment and for full text, and HNSW for vectors (source: README.md, "Engine features").
  • Optimizer: the README calls it cost-based; the code is not. It applies seven fixed rewrite rules (predicate pushdown, projection pushdown, constant folding, filter merge, limit pushdown, empty-join elimination, redundant-projection removal) for up to 10 passes, then a greedy inner-join reorder that runs only when ANALYZE has stored row counts for every table in the join. It does not compare alternative plans by cost (source: src/plan/optimizer.rs, Optimizer::new, Optimizer::optimize, cost_reorder_top). It is on by default; SYNERGYDB_OPTIMIZER set to 0, false or off disables it (source: src/query/engine.rs, optimizer_enabled). Detail: Optimizer.
  • Index choice: the optimizer does not pick indexes. The executor's table scan tries access paths in a fixed order (primary-key point get, primary-key IN, unique index, composite unique, secondary equality, secondary range, GIN, full text, primary-key range, primary-key prefix, full scan) and takes the first that applies, without reading statistics (source: src/query/engine.rs, execute_table_scan_self). Detail: executor access paths.

Wire-specific index behaviour from recent status entries:

  • MySQL VARCHAR primary keys. MySQL string equality ignores case, so a lookup on a VARCHAR primary key used to scan key ranges. The engine now probes the case variants as point gets: up to 8 letters for k = ..., up to 12 letters per value and 65,536 keys in total for k IN (...). A 1,000-key IN list went from 5,433 ms to 77 ms on 87,000 rows. Longer keys still scan. Open: string primary-key uniqueness is not case-insensitive, so 'Ab' and 'aB' both insert where MySQL raises 1062 (source: docs/status/2026-11-27-mysql-varchar-pk-lookups.md).
  • ClickHouse sorting key. CREATE TABLE ... ENGINE = MergeTree ORDER BY col now also creates a non-unique engine index on the first sort column when it is a plain column (not an expression such as toDate(ts)). Before, every WHERE seq = X scanned the table. Tables created earlier get the index on the first ClickHouse query to their database after an upgrade (source: docs/status/2026-11-28-clickhouse-sort-key-index.md).
  • MongoDB: compound unique indexes and createIndex(unique) over existing duplicates are not enforced (source: README.md, Known gaps).
  • PostgreSQL partial, expression and DESC indexes are written by pg_dump from SynergyDB as plain column indexes (source: docs/status/2026-11-24-pg-dump-from-synergydb.md).

Vectors and embeddings

Internals from the code: HNSW and vectors, embeddings.

SQL vectors

  • VECTOR(n) columns with the pgvector operators <-> (L2), <=> (cosine) and <#> (inner product). CREATE INDEX ... USING hnsw returns the same top-k as an exact scan in the project's tests (source: README.md, "Engine features").
  • pgvector compatibility added 2026-11-24 also covers <+>, vector(n) typmod checks, arithmetic and comparison operators, the pgvector distance and helper functions, avg/sum over vectors, the binary wire format, and SQLSTATE 22000 for dimension errors. The pgvector diff against pgvector 0.6.0 on PG 16 scored 74/75; features from pgvector 0.7+ were checked by hand, not diffed (source: docs/status/2026-11-24-cross-wire-vector-search.md).
  • pgvector KNN with a WHERE clause or inside a transaction is brute force: correct, not accelerated (source: docs/status/2026-11-24-cross-wire-vector-search.md).
  • Tiered vector storage (DiskANN, IVF-PQ) is designed but not wired. The [vector] tier thresholds in the config have no effect (source: README.md, "Engine features"). The config still defines hot, warm and cold thresholds (1 hour, 7 days, 30 days), and the Docker config comments list diskann and ivf_pq as default_index values (source: src/config.rs, docker/synergydb.toml).

Not verified: what happens if default_index is set to diskann or ivf_pq. Leave it at hnsw.

The vector service and cross-wire search

Since 2026-11-24 there is a wire-neutral vector index in src/vector/, persisted under __vector__:. It is exact below 10k vectors and HNSW with exact re-ranking above (source: docs/status/2026-11-24-cross-wire-vector-search.md).

  • Cross-wire collections. One collection can index PostgreSQL and MySQL table rows, MongoDB documents, Redis hashes under a key prefix, and Elasticsearch index documents. Writes over any wire reach the collection right after commit; creating a collection and every server start backfill it.
  • SQL surface: vector_collection_create, vector_collection_drop, vector_collection_sync, embed(text [, collection]), and SELECT * FROM vector_search(collection, query, k [, filter jsonb]), which returns (wire, source, id, distance, score, payload). The filter is MongoDB-style over payload fields.
  • Auto-embedding calls any OpenAI-compatible /v1/embeddings server, configured per collection or with SYNERGYDB_EMBED_URL, SYNERGYDB_EMBED_MODEL and SYNERGYDB_EMBED_API_KEY. Without a URL it uses a built-in offline hash embedder, which is lexical, not semantic.
  • Cross-wire end-to-end test: 10/10 with psycopg, pymongo, redis-py and elasticsearch-py, including a restart check.

(source: docs/status/2026-11-24-cross-wire-vector-search.md)

HNSW in the vector service is approximate. On 2026-11-27, self-queries at 200k x 128 missed their own record 1.35% of the time. The fix guarantees that a query equal to a stored vector finds it, raises ef_construction to at least 128, and widens cross-wire candidates to max(10 * k, 200). Measured afterwards: recall@10 of 0.999 on 200 noisy queries, graph search p50 1.3 ms. Graph builds take about 30% longer; a 1.5M-record build took 46 minutes on a busy 4-core box, and searches use an exact scan meanwhile (source: docs/status/2026-11-27-vector-exact-match-recall.md, docs/status/2026-11-27-vector-exact-scan.md).

Native vector APIs on other wires

Each wire's own vector API is mirrored into the vector service, so other wires can search that data.

Wire API Differential vs real product Search method on the wire
Redis FT.CREATE / FT.SEARCH KNN, JSON.* 905/905 vs Redis 8 Exact brute force
Elasticsearch dense_vector, knn 117/117 vs Elasticsearch 8.15 Exact scores (ES's default int8_hnsw quantizes)
MongoDB Atlas $vectorSearch, search indexes 56/56 vs mongodb-atlas-local 8.0 Exact
Neo4j CREATE VECTOR INDEX, db.index.vector.queryNodes 162/162 vs Neo4j 5, incl. kill -9 Exact brute force
Cassandra vector<T, n>, SAI, ORDER BY ... ANN OF 218/218 vs Cassandra 5.0, incl. kill -9 Exact brute force

(source: docs/status/2026-11-24-redis-vector-search.md, docs/status/2026-11-24-es-mongo-vector-search.md, docs/status/2026-11-24-neo4j-cassandra-vector-search.md)

These entries say exact search is fine for tens of thousands of vectors and slow beyond. Gaps they list include Redis FT.AGGREGATE and full-text scoring, Elasticsearch rescore_vector and nested dense_vector, and Atlas $search text indexes (listed but not searchable) (same sources).

/v1/embeddings

The HTTP port serves an OpenAI-compatible POST /v1/embeddings (source: README.md, "Engine features"; docs/openapi.yaml). The provider is chosen at startup:

  1. OPENAI_API_KEY set: OpenAI (model from OPENAI_EMBEDDING_MODEL, default text-embedding-3-small; OPENAI_BASE_URL for a compatible endpoint).
  2. Otherwise HUGGINGFACE_API_KEY set: HuggingFace Inference API (model from HUGGINGFACE_MODEL).
  3. Otherwise: a deterministic hash-based mock model, which the doc says is not suitable for production similarity search.

If the configured provider fails (network error, bad key), the endpoint falls back to mock embeddings and logs an error instead of failing the request. Its LangChain example says the API key sent by the client is not validated by SynergyDB (source: docs/EMBEDDINGS.md).

This endpoint and the vector service's auto-embedding are configured separately: OPENAI_API_KEY / HUGGINGFACE_API_KEY for the endpoint, SYNERGYDB_EMBED_* for collections (source: docs/EMBEDDINGS.md, docs/status/2026-11-24-cross-wire-vector-search.md).

Not verified: no status entry in the snapshot tests /v1/embeddings against OpenAI or HuggingFace. Because a provider failure silently returns mock vectors, check the server log for the fallback error before trusting search quality.


Full text

  • PostgreSQL-style to_tsvector(...) @@ to_tsquery(...) works. The README says it matches PostgreSQL on the 8 full-text probes. The committed feature matrix (undated, header total 269/295) shows 6 of 8: phraseto_tsquery diverged and the trigram % probe failed in the harness's decimal decoding. Status entries from 2026-11-24 to 2026-11-30 report the whole feature matrix at 295/295 without listing the full-text rows, so the committed file predates them (source: README.md, Known gaps; test-scripts/feature-matrix/FEATURE_MATRIX.md, fts section; docs/status/2026-11-24-statement-snapshot.md, docs/status/2026-11-30-pg-result-types.md, Gates run). Detail: Full-text search.
  • The Tantivy BM25 index in src/index/fulltext.rs is not reachable from SQL (source: README.md, Known gaps). A match_text(col, query) SQL function exists, but it is a brute-force scan; no planner pass rewrites it to use the Tantivy index (source: ROADMAP.md, item 4.46).
  • MySQL MATCH (...) AGAINST (...) is mapped onto the tsvector search. Match sets and ordering follow MySQL; relevance numbers are SynergyDB's own (source: docs/status/2026-11-24-app-install-gaps.md).
  • Elasticsearch match queries on text fields score with Lucene BM25 as Elasticsearch does (source: docs/status/2026-11-24-es-mongo-vector-search.md). There is no real English stemming (source: README.md, Known gaps).
  • Redis FT.SEARCH full-text scoring, stemming and stopwords are not implemented (source: docs/status/2026-11-24-redis-vector-search.md).

What runs where

Path What it is
src/storage/ LSM engine, WAL, compaction, backup
src/transaction/ MVCC, locks, isolation levels
src/query/ SQL parser and engine (engine.rs), Cypher, Gremlin, other dialects
src/plan/ Logical and physical planner, rule-based optimizer with a statistics-gated join reorder (source: src/plan/optimizer.rs)
src/protocol/<wire>/ One directory per wire protocol
src/vector/ Wire-neutral vector service, cross-wire collections, embedders
src/index/fulltext.rs Tantivy BM25 index (not reachable from SQL)
src/migrate/ Migration engine behind synergydb-migrate
src/bin/ migrate.rs (synergydb-migrate) and cli.rs
test-scripts/diff-*/ Differential suites against the real engines
test-scripts/wire-matrix/, test-scripts/feature-matrix/ Feature probes
docs/proof/ Raw outputs behind the README numbers
docs/status/ One file per change: what changed, gates run, gaps found

(source: README.md, "Repository map"; docs/status/2026-11-24-cross-wire-vector-search.md; ROADMAP.md, items 4.46 and 4.47; src/bin/migrate.rs)

WHITEPAPER.md is a design document, and parts of it describe the target design, not today (source: README.md, "Repository map"). STATUS.md says it is authoritative over WHITEPAPER.md, and that entries in docs/status/ newer than its 2026-11-24 baseline are the more recent truth (source: STATUS.md).

Directory descriptions in this table come from the README and status entries; the src/plan/ row was checked against the code. For code-level detail see the architecture atlas.