Prompt
time-series db for IoT data
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
For IoT data, a time-series database (TSDB) is usually the right fit because sensor data is naturally timestamped and often high-volume.
Good options
- InfluxDB
- Popular for IoT/metrics
- Easy to start with
- Good ecosystem and querying
- TimescaleDB
- Built on PostgreSQL
- Great if you want SQL + time-series features
- Good choice if you already use Postgres
- Apache IoTDB
- Designed specifically for IoT
- Good for large-scale device data
- VictoriaMetrics
- Very efficient and scalable
- Often used for metrics/monitoring, but works well for time-series workloads
- QuestDB
- High ingest performance
- SQL-friendly
- MongoDB time-series collections
- Convenient if you already use MongoDB
- Not a full TSDB, but useful for simpler cases
How to choose
Pick based on:
- Data volume: millions of points/sec? look at InfluxDB, VictoriaMetrics, IoTDB, QuestDB
- Query style: need SQL? TimescaleDB or QuestDB
- Existing stack: already on PostgreSQL? TimescaleDB
- Deployment: cloud-managed vs self-hosted
- Retention/compression needs: important for sensor data
- Downsampling/aggregations: useful for dashboards and long-term storage
Common IoT architecture
- Devices send data via MQTT/HTTP
- Ingest through a service or broker
- Store raw readings in TSDB
- Use retention policies for old raw data
- Downsample into hourly/daily aggregates
- Visualize with Grafana
My practical recommendation
- Small to medium project: TimescaleDB or InfluxDB
- If you want SQL and relational joins: TimescaleDB
- If you want purpose-built metrics/time-series: InfluxDB
- If you need very high ingest and strong compression: VictoriaMetrics or QuestDB
If you want, I can recommend the best database for your exact case based on:
- number of devices
- sample rate per device
- expected retention
- cloud or on-prem
- whether you need SQL