Durable ingest
Write-ahead log persistence before acknowledgement.
Interval reads in compressed columnar tables, windowed KPIs and the current state of the grid in keyed tables, in one engine.
The problem
Smart-meter interval reads and grid sensor data are a stream with a long memory: billing needs years of durable history, operations needs the state of the grid right now, and both read the same streams.
Splitting those needs across a historian, a cache and a warehouse multiplies schemas and makes the operational questions, which feeders are overloaded, which meters went dark, depend on pipeline lag.
You want durable columnar history, keyed current state per meter or feeder, and windowed aggregation in the same SQL.
Where NYXDB fits
Architecture
Interval reads land in columnar tables with codecs and an index on time; grouped transformations keep per-feeder totals current; keyed tables answer per-feeder and per-meter state questions.
Every interval read is in the write-ahead log before it is acknowledged.
History stays compact: COLUMNAR storage with DoubleDelta and ZSTD codecs, and a MINMAX index on the read time.
Per-feeder totals stay current, maintained by grouped transformations; windows run in STREAM SELECT.
The latest row per (feeder, metric), in an UPSERT table.
In practice
The examples use the same two tables on every page. See the SQL reference for full syntax.
SELECT address, token, amount, updated_atFROM balancesWHERE chain_id = 1 AND address = '0x9c2e4f1a';Capabilities
Write-ahead log persistence before acknowledgement.
Tumbling and hopping windows in STREAM SELECT.
Latest row per feeder or meter.
Per-column codecs and MINMAX pruning.
Learn more
Explore the time-series solution or run a node.