# Features: a database that describes itself

Canonical URL: https://rushdb.com/features

RushDB stores records, relationships and search indexes in one Rust process. As data is written it keeps an exact catalog of every label, field, type, value and relationship shape, so an agent or a developer can read what exists before writing a query.

## Records: write JSON, get linked records

Send documents in the shape your apps, pipelines or agents produce them. Each nested object becomes its own record, linked to its parent in the same commit; the key a child appears under becomes its label, and every value is typed as it is written. Records that arrive separately can be linked on matching keys afterwards (for example message.session_id = session.id) with one linkRecords command. JSON and CSV import, and inserts from SQL, Cypher, Gremlin or Mongo-style statements, all land in the same records.

## Schema catalog: the schema is a query, not a guess

Every commit updates a catalog: each label with its record count, each property per type, value dictionaries with counts, and every relationship shape. Reading it never scans records, and the counts are exact. The same call takes a filter: scoped to the records a predicate matches, it returns the fields, values and links inside that slice, which gives an app faceted navigation and lets an agent look before it narrows.

## Query languages

The same records answer every language below, read from one snapshot per query.

- SearchQuery (native JSON): Stable, Engine + Cloud. Always on. Filters reach across relationships by naming related labels.
- SQL: Stable, Engine. Labels are tables. Over PostgreSQL wire: reads and single-statement writes in autocommit; BEGIN/COMMIT are refused.
- Gremlin: Stable, Engine. Text traversals.
- Mongo-style documents: Stable, Engine. Multi-document commands are not one atomic commit.
- SQL/PGQ GRAPH_TABLE: Stable, Engine. Read-only.
- openCypher: Release candidate, Engine + Cloud. Opt-in on the engine; raw openCypher through the SDKs on Cloud. The openCypher TCK does not pass in full yet.
- ISO GQL: Release candidate, Engine. Opt-in. ISO/IEC 39075 Graph Query Language (not GraphQL). The public GQL corpus does not pass in full yet.

How clients connect:

- HTTP native protocol: Stable, Engine. POST /protocol/v1/execute on :3000.
- PostgreSQL wire: Stable, Engine. On :5432 with SQL enabled. Checked with the clients listed, not every client or ORM.
- Bolt 5.0: Release candidate, Engine. Serves Cypher; opt-in with --bolt-port.
- gRPC: Stable, Engine. rushdb.v1.Database/Execute; opt-in with --grpc-port.
- REST API: Stable, Cloud only. https://api.rushdb.com/api/v1. On a self-hosted engine use the native HTTP protocol.

Client libraries:

- TypeScript SDK: Stable, Engine + Cloud. Cloud API key, or direct mode against your engine. Cloud-only features throw CloudOnlyError in direct mode.
- Python SDK: Stable, Engine + Cloud. Cloud API key, or direct mode against your engine.
- MCP server: Stable, Engine + Cloud. Hosted with OAuth on Cloud (mcp.rushdb.com); local over stdio in direct mode for a self-hosted engine.
- Agent skills: Stable, Engine + Cloud

## Search: filter, traverse and rank in one request

Vector indexes (exact and HNSW) and BM25 full-text indexes attach to ordinary records with typed fields and relationships. Hybrid search fuses both rankings (RRF or DBSF) under the same filter, including filters on related records. The indexes live inside the database and the engine keeps them current as records change, so there is no separate search store to sync. The self-hosted engine searches vectors you supply; RushDB Cloud can embed them for you.

## Transactions

- Atomic writes: Records, relationships, index entries and catalog updates from one statement publish as one commit. Multi-statement transactions over HTTP and the SDKs.
- Snapshot reads: Every query reads one pinned MVCC snapshot, whichever language it is written in. Readers never block writers.
- Recoverable: A write-ahead log is the durable truth. Base backups plus archived WAL restore to a chosen log position; derived state is on disk, so restart rebuilds nothing.

## Architecture: one process, from the wire to the disk

The Labeled Meta-Property Graph (LMPG) stores every property value of every record as its own ordered key instead of one blob per record. Updating one property writes one key, and counters, value dictionaries and index entries are derived from each commit, which is why the catalog is exact and cheap to read.

- Transports: HTTP, PostgreSQL wire, gRPC and Bolt are thin adapters. They authenticate, bind the tenant and hand one Protocol v1 operation to the executor.
- Engines: The native engine (SearchQuery, Mongo-style), Apache DataFusion for SQL, one graph planner for Cypher, GQL, Gremlin and SQL/PGQ, plus vector and text search.
- LMPG layer: Plans mutations, expands them into keys, derives counters and the schema catalog, and reconstructs records from their occurrences.
- Storage: A segmented write-ahead log is the durable truth. Commits are materialized into an embedded ordered store; reads run on pinned MVCC snapshots.

## Status

- Stable: Native protocol and SearchQuery, SQL, Gremlin text traversals, Mongo-style documents, SQL/PGQ (read-only), the schema catalog, vector, BM25 and hybrid search, transactions, backups with point-in-time restore.
- Release candidate: openCypher, ISO GQL and Bolt are opt-in; their external conformance suites do not pass in full yet. Replication is asynchronous with manual promotion. PostgreSQL wire runs in autocommit.

## Coming soon (preview or release candidate, not production-ready)

- Multi-shard storage: Preview behind --shards N --experimental-sharding: one tenant split across up to 256 store files. Multi-shard commits are not crash-atomic yet. Tracked at https://github.com/rush-db/rushdb/issues/396
- Consensus replication (Raft): Preview in one process: commits go through an elected leader, but the Raft log lives in memory and there is no network transport between nodes yet. Tracked at https://github.com/rush-db/rushdb/issues/397
- Automatic failover: Today followers replicate asynchronously and a follower is promoted by hand. Tracked at https://github.com/rush-db/rushdb/issues/398
- Full openCypher and ISO GQL conformance: Both, and Bolt, are release candidates: reads and writes work, but the openCypher TCK and the public GQL corpus do not pass in full yet. Tracked at https://github.com/rush-db/rushdb/issues/399

## FAQ

Q: Is RushDB a graph database, a vector database or a document store?
A: All three views of one store. Data is a property graph: records with labels and typed properties, joined by typed relationships. Vector and BM25 indexes attach to those records, and JSON documents go in and come out as they are. There is one copy of the data and one snapshot per query.

Q: Do I define a schema before writing data?
A: No. There is no CREATE TABLE. Types are inferred per value, nested objects become linked records, and every commit updates the schema catalog. You can still add indexes for fields you filter by often.

Q: How does an agent use the schema catalog?
A: Before it writes a query, the agent reads describe.schema (labels, properties with types and counts, relationship shapes) and propertyValues for the fields it filters on. Scoped with a predicate, the same call describes only the records a filter matches, so the agent sees which values exist in that slice before narrowing further.

Q: Which query language should I use?
A: The one your tools or your model already know. SQL works with any PostgreSQL client and BI tool. Cypher works with Neo4j drivers over Bolt. SearchQuery is the native JSON format the SDKs and MCP server use. All of them read and write the same records.

Q: Does the engine generate embeddings?
A: No. The self-hosted engine indexes and searches vectors you supply from your own model. RushDB Cloud adds managed embeddings: it embeds writes, backfills existing records and embeds text queries.

Engine manual: https://docs.rushdb.com/engine

Last updated: 2026-10-28
