Graph
Time Series Database

⏱️Time Series Database

NEW

Also known as: TSDB

A database optimized for ingesting, storing, and querying time-ordered measurements with efficient compression, retention, and time-based analytics.

DESCRIPTION

Time series databases specialize in timestamped metrics and events. They provide high-ingest write paths, time-based indexing, and functions for aggregation, downsampling, and retention. Compression and tiered storage lower costs for long histories. TSDBs power observability platforms, IoT telemetry, and financial tick data. Examples include InfluxDB, TimescaleDB, and Prometheus.

ALTERNATIVE DEFINITIONS

InfluxData

A time series database (TSDB) is designed to handle time-stamped or time series data by supporting high ingestion rates, efficient storage, and real-time querying.

Emphasizes ingestion rates and real-time querying.

Source

Timescale

A time-series database is a database optimized for storing and analyzing time-stamped data, offering functions for aggregations and downsampling over time intervals.

Highlights built-in time aggregations and downsampling.

Source

Time-Series Data InfluxDB TimescaleDB Prometheus Pooling Retention Policy Compression Indexing Observability IoT

COMPETING TERMS

Relational Database Columnar Data Warehouse

RELATIONS

KNOWLEDGE AREAS

Data Storage & Operations Observability & Telemetry IoT & Edge Data Real-time & Streaming Data Data Engineering

TARGET AUDIENCE

Data Engineer DevOps Engineer Data Scientist Cloud Architect

EXTERNAL SOURCES

TOP QUESTIONS

Why use a Time Series Database instead of a general-purpose database?

TSDBs optimize for time-based writes, queries, and retention, delivering better performance and storage efficiency for metric- and event-heavy workloads.

Category: Decision

How do Time Series Databases compress data?

They use techniques like delta-of-delta encoding and run-length encoding, often combined with columnar layouts and chunking by time.

Category: Mechanism

What are common TSDB use cases?

Observability metrics, IoT telemetry, financial ticks, and industrial monitoring are frequent applications.

Category: Overview

How do retention policies work in TSDBs?

Policies automatically expire or downsample older data to manage costs, often tiering storage between hot and cold layers.

Category: Management

Do Time Series Databases support SQL?

Many offer SQL or SQL-like query languages; e.g., TimescaleDB extends PostgreSQL, while others provide custom languages or APIs.

Category: Capabilities

How do TSDBs handle high ingestion rates?

Batching, write-ahead logs, and time-partitioned storage support millions of points per second in some systems.

Category: Scalability

What are common mistakes with TSDB schema design?

Cardinality explosions and unbounded tag sets cause memory and storage issues. Careful label design and aggregation help.

Category: Mistakes

Can TSDBs handle out-of-order data?

Most handle late arrivals within windows; watermarking and reaggregation strategies mitigate late or out-of-order events.

Category: Capabilities

How does downsampling affect analytics?

Downsampling reduces granularity for older data, lowering storage while preserving trends; it can limit fine-grained analysis historically.

Category: Trade-off