QuestDB Lab
An independent lab for QuestDB time-series in production · Tutorials · Benchmarks · Deployment guides
Independent technical community — not affiliated with questdb.io, not an official QuestDB resource
🔍 What is Time-Series Lab?
Time-Series Lab is an independent technical community focused on QuestDB — a high-performance, open-source time-series database. We provide hands-on tutorials covering IoT sensor data, financial tick data, observability, and performance benchmarks. Every example is runnable, and every performance claim comes with its test conditions.
QuestDB is designed for high-throughput ingestion and sub-millisecond analytical queries, using a distributed columnar storage engine. It's ideal for time-series workloads: sensors/IoT, financial tick/OHLC, and observability metrics. Whether you're writing millions of rows per second or aggregating terabytes of historical data, QuestDB handles it with ease.
Tutorials
Learn QuestDB from scratch — IoT, financial tick, and observability with real-world scenarios
Benchmarks
QuestDB vs InfluxDB/TimescaleDB/ClickHouse — data-driven comparisons for tool selection
Advanced Techniques
SAMPLE BY aggregation, ASOF JOIN, SYMBOL types, and partitioning strategies — deep dives with runnable SQL
Best Practices
Production deployment, high-throughput ILP ingestion, Grafana dashboard integration — make QuestDB work for you
🧭 Learning Path
Basics
Install QuestDB and write your first time-series data via the ILP line protocol
Model
Design timestamps, SYMBOL dimensions, and PARTITION BY partitioning strategies
Analyze
Use SAMPLE BY, ASOF JOIN, and FIRST/LATEST for time-series aggregation and alignment
Production
High-throughput ILP ingestion, Grafana visualization, and distributed deployment
🔥 Featured Posts
Out-of-Order Writes & Late Data: QuestDB O3 and Merge-Append Partitions Explained
A device returns an hour of cached readings, a venue replays forty minutes, a backfill fills last week's gap — late data is the norm in time series. This article explains QuestDB's O3 (out-of-order) mechanism: how late rows merge into the right partition, why that costs write amplification, how merge-append partitions turn a full-partition rewrite into a tail append, and the cairo.o3 settings, with a runnable demo.
QuestDB vs ClickHouse: Which Fits Time Series Better? (SQL & Ingestion Compared)
QuestDB and ClickHouse are both columnar but built for different jobs: QuestDB for time-series ingest (ILP, SAMPLE BY, ASOF JOIN, partition retention), ClickHouse for general OLAP. This article compares table creation, ingestion, and downsampling side by side, and maps out where each wins, so you pick the right database for your data.
Building K-lines From Financial Ticks: QuestDB SAMPLE BY Computes OHLCV
Store tick-level financial data in QuestDB and compute your own K-lines: one SAMPLE BY line yields 1m candles, FIRST/MAX/MIN/LAST give OHLC, SUM gives volume. Covers the ticks table, ILP writes, per-symbol sampling, daily candles, the big-candle resampling trap, pre-aggregating a candle table for charts, and ASOF JOIN with an index.
Power Load Curve Analysis: QuestDB Metering Data and Peak Demand
Power load curves are the archetypal time-series workload: fixed-interval sampling, many independent meters, cross-meter aggregation, peak/off-peak pricing windows. This article stores 15-minute metering data in QuestDB and gives four core query families: load curves, coincident and non-coincident peak demand, load factor, and peak/off-peak energy split.
QuestDB Python Client in Practice: Fast ILP Writes and pandas Ingestion
Writing to QuestDB from Python services is the most common integration question. Three paths: the official questdb client over TCP batch writes, the InfluxDB-compatible 9092 HTTP port, and bulk pandas DataFrame backfills. Covers batching, retry and dedup on reconnect, timestamp-unit pitfalls, and a complete safe-write pattern.
QuestDB Anomaly Detection in Practice: Rolling Z-Score & Financial Tick De-Dup Backtest
QuestDB anomaly detection in practice: a windowed rolling Z-score to catch time-series spikes, plus financial tick de-duplication before backtesting. Covers window-frame syntax, dedup semantics, backtest metrics, common traps, and runnable SQL with Grafana alert thresholds.
QuestDB ILP High-Concurrency Write Tuning: Workers, Batching & Memory Benchmarks
QuestDB ILP high-concurrency write tuning, demystified: how the ingest thread model, batch size, and heap settings interact. Includes JVM flags, connection-pool config, backpressure handling, and a reproducible benchmark workflow for production-grade time-series ingestion.
❓ QuestDB FAQ
What is QuestDB best for?
Time-series workloads — IoT sensor data, financial tick/OHLC data, observability metrics, and logs. It excels at high-throughput ingestion and sub-millisecond analytical queries, but is not designed for general OLTP (high-concurrency transactions) or frequent low-latency point updates — that's PostgreSQL territory.
QuestDB vs InfluxDB: which is better?
Both target time-series, but with different emphases. QuestDB is typically stronger in high-concurrency ingestion + low-latency analytical queries, with native standard SQL and Grafana support; InfluxDB has a more mature cloud ecosystem and managed services. Choose based on your write rate, query latency requirements, and ops cost.
Does QuestDB replace ClickHouse?
In some scenarios, yes. QuestDB is purpose-built for time-series, with faster write throughput and time aggregation that's easier to use; ClickHouse is more flexible for general OLAP and complex multi-dimensional analytics. If your data is primarily time-series, QuestDB is often the more convenient choice.
How much data can QuestDB handle?
A single node supports millions of rows per second of high-throughput writes. With PARTITION BY DAY/MONTH partitioning and compression, it efficiently manages TB-scale historical data. For larger scale, use QuestDB's distributed mode to scale horizontally.