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.

52 notes · newest first · filter by tag

Filter by tag

All notes

Newest first

52 notes
2026-11-28 · Events and replication · 6 min read

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.

eventsstreamsconsumer groupsretention
Read the article →
2026-11-27 · Operations · 7 min read

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.

operationsbackups
Read the article →
2026-11-27 · Documents and MongoDB · 7 min read

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.

mongodbaggregationmemory
Read the article →
2026-11-27 · Lifecycle and security · 7 min read

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.

securityauth
Read the article →
2026-11-27 · Documents and MongoDB · 6 min read

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.

mongodbindexes
Read the article →
2026-11-27 · Graph and Cypher · 6 min read

Background graph jobs and memory budgets

Long graph analytics without holding an HTTP request open: job states, concurrency, budgets, and atomic export.

graphjobsmemory
Read the article →
2026-11-27 · Events and replication · 7 min read

Background jobs with fenced leases

A job queue built from ordinary documents: atomic claims, lease fencing, retries, and why workers must be idempotent.

eventsjobs
Read the article →
2026-11-27 · Search and vectors · 7 min read

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.

searchbm25
Read the article →
2026-11-27 · Operations · 6 min read

Branching a database for CI and experiments

Copy-on-write clones, snapshot sources, sidecar rebuilds, and the limits of a branch with no merge.

operationsbranching
Read the article →
2026-11-27 · Time-series · 7 min read

Choosing per-column codecs

Delta, delta-of-delta, Gorilla XOR, dictionary, bit-packing, and byte-shuffle: how time-series columns get smaller.

time seriescompression
Read the article →
2026-11-27 · Operations · 7 min read

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.

operationslmdbcompression
Read the article →
2026-11-27 · SQL and data types · 7 min read

Dates, time zones, and timestamp comparisons

How NonoDB accepts timestamps, normalizes them to UTC, compares instants, and avoids the ambiguous-local-time trap.

sqldates
Read the article →
2026-11-27 · Time-series · 7 min read

Designing time-series storage for small deployments

Buckets, series, and time windows: how NonoDB’s time-series profile differs from one document per sample.

time seriesstorage
Read the article →
2026-11-27 · SQL and data types · 6 min read

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.

sqlhistorydocuments
Read the article →
2026-11-27 · Lifecycle and security · 7 min read

Encryption at rest: threat model and key rotation

Volume encryption, vault collections, backup encryption, and the places plaintext still leaks.

securityencryptionbackups
Read the article →
2026-11-27 · SQL and data types · 7 min read

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.

sqldata types
Read the article →
2026-11-27 · Search and vectors · 6 min read

Fuzzy search with trigrams and Levenshtein

Typo-tolerant matching without a search cluster: trigram candidates, bounded edit distance, and the limits of the approach.

searchfuzzy
Read the article →
2026-11-27 · SQL and data types · 6 min read

GeoJSON point indexes and geospatial queries

Point indexes, $near distances, $geoWithin shapes, and the limits of a small geospatial implementation.

sqlgeospatialindexes
Read the article →
2026-11-27 · Graph and Cypher · 7 min read

Graph traversal on ordinary documents

How NonoDB treats nodes and edges as documents, maintains adjacency transactionally, and bounds traversal cost.

graphdocuments
Read the article →
2026-11-27 · GUI, CLI, and benchmarks · 8 min read

How to read a database benchmark

Host differences, client overhead, cache effects, data shape, and the questions a benchmark table does not answer.

benchmarks
Read the article →
2026-11-27 · Search and vectors · 7 min read

Hybrid search: BM25 + vectors + graph

Reciprocal-rank fusion for lexical and vector results, and how graph proximity becomes another ranking signal.

searchvectorsgraph
Read the article →
2026-11-27 · Positioning and architecture · 7 min read

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.

architecturememoryperformance
Read the article →
2026-11-27 · Search and vectors · 7 min read

Keeping search indexes consistent with writes

Transactional deltas, immutable segments, sidecars, reindexing, and the consistency trade-offs behind built-in search.

searchindexes
Read the article →
2026-11-27 · Positioning and architecture · 7 min read

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.

architecturelmdbperformance
Read the article →
2026-11-27 · Documents and MongoDB · 7 min read

Migrating from MongoDB to NonoDB

A practical migration path: ObjectId handling, indexes, BSON types, cutover, rollback, and the parts that need application changes.

mongodbmigration
Read the article →
2026-11-27 · Documents and MongoDB · 7 min read

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.

mongodb
Read the article →
2026-11-27 · GUI, CLI, and benchmarks · 7 min read

Monitoring a single-writer database

Health checks, metric scopes, latency histograms, queue depth, WAL alarms, and the signals that actually indicate trouble.

operationsmonitoring
Read the article →
2026-11-27 · Positioning and architecture · 6 min read

Multiple databases in one daemon

How NonoDB isolates databases without separate processes or ports, and where the isolation stops.

architectureoperations
Read the article →
2026-11-27 · Lifecycle and security · 6 min read

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.

operationsquotas
Read the article →
2026-11-27 · Operations · 7 min read

Point-in-time recovery without guessing

How snapshot plus WAL replay reaches a chosen timestamp, what the recovery window costs, and when writes stop.

operationspitrbackups
Read the article →
2026-11-27 · Documents and MongoDB · 6 min read

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.

mongodbindexesquery planner
Read the article →
2026-11-27 · GUI, CLI, and benchmarks · 7 min read

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.

performancememorybenchmarks
Read the article →
2026-11-27 · Graph and Cypher · 7 min read

Read-only Cypher: subset, TCK, and limitations

A compatibility subset with a pinned openCypher TCK baseline, explicit unsupported cases, and no write clauses.

graphcypher
Read the article →
2026-11-27 · Events and replication · 8 min read

Replication, failover, and an honest RPO

Pull-based replicas, quorum leases, promotion readiness, and the small data-loss window that asynchronous failover cannot hide.

eventsreplication
Read the article →
2026-11-27 · Time-series · 7 min read

Retention, tombstones, and compaction

Why deleting time-series rows does not shrink data.mdb, how deletion bitmaps work, and when to compact.

time seriescompressionretention
Read the article →
2026-11-27 · Operations · 7 min read

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.

operationsmemorydeployment
Read the article →
2026-11-27 · Graph and Cypher · 7 min read

Shortest paths, pattern matching, and graph analytics

What NonoDB’s graph operations actually compute, how weights work, and where the bounded algorithms stop.

graphcypher
Read the article →
2026-11-27 · SQL and data types · 7 min read

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.

sqldocuments
Read the article →
2026-11-27 · GUI, CLI, and benchmarks · 6 min read

The CLI as a small admin surface

One binary for daemon commands, file operations, auth, replication, and restores — and the places it deliberately stops.

operationscli
Read the article →
2026-11-27 · GUI, CLI, and benchmarks · 7 min read

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.

operationsgui
Read the article →
2026-11-27 · Events and replication · 7 min read

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.

eventsoutbox
Read the article →
2026-11-27 · Time-series · 8 min read

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.

time seriescompressionbenchmarks
Read the article →
2026-11-27 · Time-series · 8 min read

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.

time seriesbenchmarks
Read the article →
2026-11-27 · Time-series · 6 min read

Timestamp handling in time-series collections

Accepted timestamp forms, bucket windows, time-zone semantics, retention, and what happens when time or series changes.

time seriesdates
Read the article →
2026-11-27 · Lifecycle and security · 7 min read

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.

ttlretention
Read the article →
2026-11-27 · Lifecycle and security · 7 min read

Vault collections and per-tenant keys

Whole-document encryption with tenant keys, restricted queries, and the operational cost of giving up indexes.

securityencryption
Read the article →
2026-11-27 · Graph and Cypher · 6 min read

Vector + graph recommendation queries

How vector similarity, graph proximity, and deterministic scoring combine for recommendations without a separate service.

graphvectors
Read the article →
2026-11-27 · Search and vectors · 7 min read

Vector search: exact, ANN, and metrics

How NonoDB stores vectors, when exact search is the right default, and what the IVF sidecar changes.

searchvectors
Read the article →
2026-11-27 · Events and replication · 7 min read

Watch, long-poll, and live streams

Three ways to consume changes: bounded watch, continuous NDJSON/SSE streams, and connection-scoped live subscriptions.

eventsstreams
Read the article →
2026-11-27 · Events and replication · 7 min read

Webhooks without blocking the writer

Rules, thresholds, retries, HMAC signing, and dead letters: how asynchronous webhooks keep HTTP failures out of the write path.

eventswebhooks
Read the article →
2026-11-27 · Positioning and architecture · 7 min read

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.

architectureperformance
Read the article →
2026-11-27 · Positioning and architecture · 7 min read

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.

architectureoperations
Read the article →