Time-series · Engineering
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.
The useful question is not “is NonoDB faster than TimescaleDB?” It is “which workload does each system fit?” A benchmark that reports one winner without the shape of the data is a marketing artifact.
This is the comparison we can defend: a 100k-row shape check and a 206M-row import, with the methodology and the cases where TimescaleDB wins.
The 100k-row shape
Both systems received the same 100k rows, 10 series, and 8 columns. NonoDB used its time-series profile; TimescaleDB used PostgreSQL 16 with native compression.
| Operation | NonoDB time-series | TimescaleDB |
|---|---|---|
| Insert one row | 39 µs p50 | 0.89 ms p50 |
| Bulk load, 1000-row txns | 46,000 rows/s | 98,900 rows/s |
| Find 1 h, 1 series | 20.2 ms | 14.9 ms |
| Count 1 h, 1 series | 24.8 ms | 1.81 ms |
Aggregate $group 1 h |
35.7 ms | 2.54 ms |
| Update by id | 13.6 ms | 1.46 ms |
| Delete by id | 14.8 ms | 1.33 ms |
| Indexed status+series, limit 100 | 33.1 ms | 1.11 ms |
| Storage, 100k rows | 1.02 MB compacted | 1.98 MB compressed |
The single-row insert result is not the whole story: NonoDB inserts through a document API and a time-series bucket write; TimescaleDB uses a PostgreSQL statement. The bulk-load gap is more representative of sustained ingest.
Where TimescaleDB wins
TimescaleDB is a mature, general-purpose OLTP engine with a time-series extension. That shows up in:
- bulk ingest, roughly 2× faster in this shape;
- counts and aggregates, where PostgreSQL’s executor is much faster;
- point updates and deletes, which do not need to decode a bucket;
- highly selective indexed queries, where B-tree indexes are strong;
- continuous aggregates and the PostgreSQL extension ecosystem.
If your workload is high-ingest telemetry queried by many analysts with complex SQL, TimescaleDB is the safer choice. It is also the right choice if you already run PostgreSQL and want to keep that operational model.
Where NonoDB wins
NonoDB’s advantage is footprint and integration:
- storage: 1.02 MB compacted versus 1.98 MB compressed for the 100k shape;
- one process: time-series data lives next to documents, search, graph, TTL, events, backups, and replication;
- no second service: no PostgreSQL server, no extension, no sync pipeline;
- range reads: 20.2 ms for a one-hour series, close to TimescaleDB’s 14.9 ms and much faster than a document-per-row collection.
The storage number has a caveat: it is a compacted copy. The live LMDB file keeps its high-water mark until compaction. A fair operational comparison must include that.
The 206M-row import
On a 206M-row OHLC dataset, NonoDB’s bucket locators, header-only counts, and hourly/daily rollups brought a BTC/USD 30-day OHLC query to about 5.5 ms, versus 56.8 ms for TimescaleDB. A one-day all-symbol OHLC query was about 65 ms for NonoDB versus 33.6 ms for TimescaleDB.
That is the pattern: NonoDB can win single-series queries with bucket pruning and rollups; TimescaleDB wins all-symbol aggregations with its columnar executor. The full methodology, RAM notes, and caveats are in the benchmark.
What the benchmark does not prove
- It is not a tuned benchmark for either system.
- It does not cover every query shape.
- No PostgreSQL connection pooling or prepared statements were used.
- The 100k table is a shape check, not a production sizing exercise.
- The 206M dataset has slightly different row counts between systems.
- Storage numbers depend on compaction and compression settings.
A benchmark is evidence for a shape, not a universal ranking. Run the workload you care about on your hardware.
How to choose
Choose NonoDB time-series when:
- the deployment is small or mid-size;
- you want one process for documents and telemetry;
- range reads, retention, and footprint matter more than point-update latency;
- you can accept lower bulk ingest than a dedicated TSDB.
Choose TimescaleDB when:
- ingest and analytical SQL dominate;
- continuous aggregates are central;
- point updates and deletes are frequent;
- you already operate PostgreSQL and want its ecosystem.
The worst choice is adding a second database for a feature that fits the first one. The second-worst is forcing a small database to be a high-ingest analytics platform. Measure, then decide.
The time-series guide covers the profile; the benchmark page has the reproduction commands and raw results.