Prompt
I’m unhappy with QuestDB when data arrives out of order
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
That’s a fair complaint. QuestDB is very strong for high-ingest time-series workloads, but out-of-order (O3) data is one of the areas where it can feel painful, especially if you have lots of late arrivals or your timestamps are not well ordered.
A few practical points:
Why it hurts
- QuestDB is optimized for append-mostly, time-ordered writes.
- When data arrives late, it has to do extra work to place rows into the right partitions/slices.
- If out-of-order data is frequent or highly disordered, ingest throughput and query performance can suffer.
Things you can try
-
Buffer and sort before writing
- If you control the pipeline, batch records and sort by timestamp before ingest.
- Even a small reordering window can help a lot.
-
Use a staging layer
- Land raw events in Kafka, S3, or a queue, then process them into ordered batches.
-
Reduce disorder
- If possible, ensure the producer timestamps are generated consistently.
- Watch for clock drift, retries, and delayed network delivery.
-
Model late data separately
- Keep “hot” recent data in QuestDB and push late corrections or historical backfill elsewhere, then merge offline if needed.
-
Tune ingestion patterns
- Larger batches and fewer concurrent writers often behave better than many tiny inserts.
If O3 is a core part of your workload
If your data is regularly late, heavily backfilled, or corrected after the fact, you may want a database that is more forgiving of out-of-order writes, or use a pipeline that normalizes order before storage.
If you want, I can help with one of these:
- evaluate whether QuestDB is a poor fit for your exact workload,
- suggest alternatives better suited to out-of-order time-series data,
- or help design an ingest pipeline that keeps QuestDB fast despite late arrivals.