Advanced Topic 50 of 51 Databases
Time-Series Databases
Stores specialized for timestamped measurements.
How it works
Time-series databases are optimized for data points indexed by time, such as metrics, sensor readings and events. They ingest large volumes of append-heavy writes, store data in time-ordered chunks with strong compression, and offer query features such as time-window aggregation, downsampling, interpolation, retention policies and continuous aggregates. Tags or labels identify each series. InfluxDB, TimescaleDB, Prometheus and Druid are examples.
Step-by-step walkthrough
- Measurements arrive with timestamps.
- Data is appended in time order, which is very fast.
- It is stored in time chunks.
- Queries ask for ranges and aggregates, such as hourly averages.
- Old data is downsampled or expired automatically.
Where it is used
Infrastructure and application monitoring, IoT telemetry, financial tick data, industrial control and energy analytics use them.
Common pitfall
High cardinality, many unique tag combinations, can explode memory and index size and slow queries. Updating or deleting old points is expensive or unsupported. Query patterns outside time ranges are less efficient. Plan retention and downsampling so storage does not grow without bound, and choose tags carefully, avoiding unbounded values such as user IDs.
Where it fits in the course
Time-Series Databases is topic 50 of 51 in Databases, rated Advanced. It follows NewSQL and Distributed SQL. The next topic is Vector Databases.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Databases quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Databases quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Time-Series Databases?
Where do people use Time-Series Databases?
What is the most common mistake with Time-Series Databases?
What should I learn before this topic?
How can I practice it?
Is Time-Series Databases hard to learn?
How long does it take to learn Time-Series Databases?
Which topics are related to Time-Series Databases?
What should I study after Time-Series Databases?
Related topics
- NewSQL and Distributed SQL (Databases)
- Vector Databases (Databases)
- LSM Trees (Databases)
- OLTP vs OLAP (Databases)
- Time Complexity (Algorithms)
- Summations and Series (Math for Computing)
- Taylor Series (Math for Computing)