Blog · Engineering notes
Notes from building a smaller database and big possibilities.
Design decisions, measurements, and the places where a specialised system is still the better tool.
Filter by tag
All notes
Newest first
Consumer groups without a second log
How NonoDB streams combine writer-assigned offsets, range leases, dead letters, and retention with the documents already in the database.
Read the article →A backup strategy that survives a restore drill
Online backups, instance-wide copies, sidecars, encryption keys, and the only test that matters: restoring on a clean host.
Read the article →Aggregation pipelines: stages, memory, and limits
How NonoDB executes aggregation, which stages stream, where memory is bounded, and why a large pipeline is not a batch analytics engine.
Read the article →Auth: principals, scopes, mTLS, and lockout
A small auth model for a small database: tokens, per-database scopes, client certificates, reloads, and failed-login protection.
Read the article →Automatic indexes from query shapes
NonoDB can create indexes from frequent read shapes. Here is how the opt-in feature works, when it helps, and when it creates expensive clutter.
Read the article →Background graph jobs and memory budgets
Long graph analytics without holding an HTTP request open: job states, concurrency, budgets, and atomic export.
Read the article →Background jobs with fenced leases
A job queue built from ordinary documents: atomic claims, lease fencing, retries, and why workers must be idempotent.
Read the article →BM25 full-text search in one process
How NonoDB’s text index ranks documents, what its tokenizer does, and where the built-in search stops.
Read the article →Branching a database for CI and experiments
Copy-on-write clones, snapshot sources, sidecar rebuilds, and the limits of a branch with no merge.
Read the article →Choosing per-column codecs
Delta, delta-of-delta, Gorilla XOR, dictionary, bit-packing, and byte-shuffle: how time-series columns get smaller.
Read the article →Compaction, map size, and the high-water mark
Why data.mdb does not shrink after deletes, how to grow the map online, and when a compacting copy is the right tool.
Read the article →Dates, time zones, and timestamp comparisons
How NonoDB accepts timestamps, normalizes them to UTC, compares instants, and avoids the ambiguous-local-time trap.
Read the article →Designing time-series storage for small deployments
Buckets, series, and time windows: how NonoDB’s time-series profile differs from one document per sample.
Read the article →Document history and audit trails without extra tables
How per-collection revisions work, what they cost, and why history is not the same as an audit log.
Read the article →Encryption at rest: threat model and key rotation
Volume encryption, vault collections, backup encryption, and the places plaintext still leaks.
Read the article →Exact numbers, Decimal128, and BSON types
Why 30 equals 30.0, why large integers do not get rounded through f64, and how Decimal128 fits into one numeric bracket.
Read the article →Fuzzy search with trigrams and Levenshtein
Typo-tolerant matching without a search cluster: trigram candidates, bounded edit distance, and the limits of the approach.
Read the article →GeoJSON point indexes and geospatial queries
Point indexes, $near distances, $geoWithin shapes, and the limits of a small geospatial implementation.
Read the article →Graph traversal on ordinary documents
How NonoDB treats nodes and edges as documents, maintains adjacency transactionally, and bounds traversal cost.
Read the article →How to read a database benchmark
Host differences, client overhead, cache effects, data shape, and the questions a benchmark table does not answer.
Read the article →Hybrid search: BM25 + vectors + graph
Reciprocal-rank fusion for lexical and vector results, and how graph proximity becomes another ranking signal.
Read the article →Inside the ~5 MB idle daemon
Where NonoDB’s idle memory goes, why RSS can jump during scans, and why the LMDB map size is not a RAM allocation.
Read the article →Keeping search indexes consistent with writes
Transactional deltas, immutable segments, sidecars, reindexing, and the consistency trade-offs behind built-in search.
Read the article →LMDB and the single-writer model
Why NonoDB uses LMDB, how copy-on-write MVCC works, and what a single writer per database means for throughput and crash safety.
Read the article →Migrating from MongoDB to NonoDB
A practical migration path: ObjectId handling, indexes, BSON types, cutover, rollback, and the parts that need application changes.
Read the article →MongoDB wire compatibility: supported subset and gaps
What works with official MongoDB drivers, what the wire listener deliberately does not implement, and how to decide whether an existing application can move.
Read the article →Monitoring a single-writer database
Health checks, metric scopes, latency histograms, queue depth, WAL alarms, and the signals that actually indicate trouble.
Read the article →Multiple databases in one daemon
How NonoDB isolates databases without separate processes or ports, and where the isolation stops.
Read the article →Per-database quotas and writer backpressure
How data, index, history, and sidecar quotas are enforced at the writer, and what happens at the hard limit.
Read the article →Point-in-time recovery without guessing
How snapshot plus WAL replay reaches a chosen timestamp, what the recovery window costs, and when writes stop.
Read the article →Query planning: when an index is used and when it isn’t
NonoDB’s planner is deliberately conservative. Here is how it chooses an access path, why null is special, and what explain tells you.
Read the article →RAM footprint: what is and is not in RSS
Idle memory, page cache, virtual size, peak scans, and the 26 MiB process number next to a 206M-row dataset.
Read the article →Read-only Cypher: subset, TCK, and limitations
A compatibility subset with a pinned openCypher TCK baseline, explicit unsupported cases, and no write clauses.
Read the article →Replication, failover, and an honest RPO
Pull-based replicas, quorum leases, promotion readiness, and the small data-loss window that asynchronous failover cannot hide.
Read the article →Retention, tombstones, and compaction
Why deleting time-series rows does not shrink data.mdb, how deletion bitmaps work, and when to compact.
Read the article →Running on a 1 GB VM without pretending
Profiles, map size, memory peaks, backups, and the workloads that still do not fit on a tiny host.
Read the article →Shortest paths, pattern matching, and graph analytics
What NonoDB’s graph operations actually compute, how weights work, and where the bounded algorithms stop.
Read the article →SQL over documents without joins
NonoDB’s SQL subset translates SELECT, INSERT, UPDATE, and DELETE into the normal document and aggregation paths. Here is what it does well and where it stops.
Read the article →The CLI as a small admin surface
One binary for daemon commands, file operations, auth, replication, and restores — and the places it deliberately stops.
Read the article →The GUI as an admin console, not a dashboard toy
What the embedded console actually does: documents, indexes, eventing, graph, backups, replication, and the boundaries of a loopback tool.
Read the article →The outbox pattern, inside the database
Why NonoDB writes events in the same transaction as data, how automatic change events work, and why delivery is at-least-once.
Read the article →Time-series collections without a second database
How NonoDB stores timestamped samples as compressed typed columns next to ordinary JSON documents, what it costs, and where TimescaleDB is still the better choice.
Read the article →Time-series vs TimescaleDB: where each wins
A measured comparison of time-series storage, ingest, range reads, and the cases where a dedicated PostgreSQL extension is still the better choice.
Read the article →Timestamp handling in time-series collections
Accepted timestamp forms, bucket windows, time-zone semantics, retention, and what happens when time or series changes.
Read the article →TTL at collection, field, and document level
Expiry defaults, date-field TTL, per-document overrides, and why expired data is hidden before the sweeper runs.
Read the article →Vault collections and per-tenant keys
Whole-document encryption with tenant keys, restricted queries, and the operational cost of giving up indexes.
Read the article →Vector + graph recommendation queries
How vector similarity, graph proximity, and deterministic scoring combine for recommendations without a separate service.
Read the article →Vector search: exact, ANN, and metrics
How NonoDB stores vectors, when exact search is the right default, and what the IVF sidecar changes.
Read the article →Watch, long-poll, and live streams
Three ways to consume changes: bounded watch, continuous NDJSON/SSE streams, and connection-scoped live subscriptions.
Read the article →Webhooks without blocking the writer
Rules, thresholds, retries, HMAC signing, and dead letters: how asynchronous webhooks keep HTTP failures out of the write path.
Read the article →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.
Read the article →Why one process for six everyday database roles
The case for a small all-in-one database: fewer moving parts, not a claim that one engine replaces every specialised system.
Read the article →No articles match this tag.