Positioning and architecture · Engineering

What “all-in-one” actually costs

An honest list of the trade-offs behind a small database: single writer, no joins, bounded aggregation, and features that are useful but not equal to dedicated systems.

“All-in-one” is a useful shorthand and a dangerous promise. A database that covers documents, SQL, search, vectors, graph, and time-series is not the same as six best-in-class systems glued together. The interesting question is not whether it has more checkboxes. It is what you give up to get fewer moving parts.

This is the list we would want to read before choosing NonoDB.

One writer per database

All writes to a database go through one writer thread. LMDB allows one writer at a time, and NonoDB makes that explicit instead of hiding it behind a connection pool.

The benefit is predictable group commit, simple crash recovery, and no cross-request write conflicts. The cost is that write throughput is serialized per database. Reads are concurrent, and different databases have independent writers, but a single write-heavy collection will hit the writer ceiling before it hits a CPU ceiling.

If you need multi-master writes or transparent sharding, this is not the database for that. If you need a durable single-node writer with atomic batches, it is a reasonable fit.

No general interactive transactions

There is no begin/commit API spanning multiple requests. write_batch is the atomic primitive: one request, all operations commit or none do. insert_many is not all-or-nothing; use write_batch when that matters.

There are also no cross-collection joins and no cross-database transactions. SQL runs over one collection. Application-level joins and lookup helpers are possible, but the database will not plan a distributed join for you.

SQL is deliberately narrow

NonoDB supports SELECT, INSERT, UPDATE, and DELETE over one collection, including WHERE, GROUP BY, HAVING, aggregates, CASE, ORDER BY, LIMIT, and positional parameters.

It does not support joins, window functions in every form, stored procedures, or the PostgreSQL extension ecosystem. It is a useful query surface for reports and administration, not a replacement for PostgreSQL.

Aggregation is bounded

Aggregation is read-only and materialises intermediate results in memory. The default cap is 100,000 intermediate documents. A leading $group streams input, but group state stays in memory. There is no disk spill.

That keeps memory predictable and prevents a casual pipeline from taking down a small VM. It also means a very large analytical job belongs in a batch system or a different database.

Search and vectors are built in, not maximal

BM25 full-text search, fuzzy matching, and exact vector search are maintained in the same write transaction as the document. An optional IVF sidecar accelerates approximate unfiltered vector queries.

The trade-off is scope: there is no Elasticsearch cluster, no arbitrary analyzer plugin ecosystem, and no vector database with every quantization and sharding mode. Search indexes are also local to the database, not a separate service you can scale independently.

Graph is read-oriented

Graph edges are ordinary documents with a native adjacency index. Traversal, shortest paths, pattern matching, PageRank-style analytics, and a read-only Cypher subset are supported.

Write Cypher and the wider Neo4j ecosystem are not. If your product is a graph application, use a graph database. If relationships are one feature of a document application, keeping them next to the documents can be a net win.

Time-series is a profile, not a TSDB

Time-series collections use per-series/time-window buckets and columnar codecs. They are excellent for moderate ingest, retention, and range queries on a small deployment.

They are not a drop-in TimescaleDB replacement. Bulk ingest is lower, point updates and deletes are slower, and dedicated TSDBs have more mature continuous aggregation and operational tooling. We wrote about that comparison directly in the benchmark notes.

Security and operations have sharp edges

Vault collections encrypt whole documents per tenant, but they do not support secondary, text, fuzzy, or vector indexes. PITR is opt-in and per database. Quotas are enforced at the writer, which means a rejected write is a real application error, not a metric.

Backups are only useful if restores work. Compaction is required to reclaim disk space because LMDB keeps its high-water mark. None of this is hidden, but none of it is automatic in every deployment either.

The honest summary

NonoDB is a good fit when the application needs a little of several things and the team values one process, one backup, and one auth model. It is a poor fit when one workload needs the full depth of a specialist.

The README and roadmap list the boundaries. If those boundaries look acceptable, the rest of the blog explains how the pieces work.

All engineering notes →Read the docs