Skip to content
IoT Crest

IoT time series database: why it helps

By Hamza Rivera, published , 3 min read

Short answer: A time series database stores readings in timestamp order and is commonly built for writes that only add new records. Wikipedia says these databases are designed for append-only workloads and can downsample or drop old data in bulk. One research paper from Samsung Research America reports ingest rates 3x to 4x higher than existing relational database systems, measured on its own test setup.

Why IoT sensor data suits a time series database: append-only writes, timestamp order, downsampling and retention, and what one research prototype measured.

This article covers why sensor data fits a time series database, how writes arrive and how old data is aged out, how such databases differ from relational ones, and what one prototype measured It does not cover a comparison of named commercial products, prices, cluster sizing, or the setup of a specific database

Sensors send timestamped readings over time. This guide sets out what the sources say about why a database built for that pattern helps with IoT data, and where the evidence stops. For the stages before storage, see the IoT data pipeline guide.

What the database is for

Wikipedia calls a time series database a software system “optimized for handling time series data”, and describes time series data as “a sequence of data points indexed in chronological order.”

It also says these systems “must ingest and index massive streams of sensor or metric data in real time.” Its list of uses includes “the internet of things (IoT)” alongside infrastructure monitoring and system automation, and its applications section names “IoT telemetry.”

Why sensor data fits

The Samsung paper gives the core reasons. It says “Data is highly-ordered”: “Time advances and thus data is inherently in order.” It also says each data element “represents an unchangeable history”, so a reading is written once and not changed afterwards.

Wikipedia puts it in one line: “Time series databases are commonly designed for append-only workloads”, with readings “continuously ingested alongside corresponding timestamps.”

Why ordinary databases struggle

The paper says “Existing databases and storage systems predominantly handle time-series data no differently from other data.” It reports that existing relational solutions are “typically limited to ingress streams of 200-300K RPS on a single commodity server and 25-30K RPS on an embedded platform.”

The same paper accepts the strength of SQL. It says “While most database solutions provide SQL access to data, they inherently cannot support continuous ingest of large-volumes of streaming data.”

Wikipedia makes a related point about structure. It says systems “designed around a temporal primary index differ structurally from relational databases”, and that TSDBs “do not require the overhead of traditional relational constraints.”

Ageing data and retention

Wikipedia says TSDBs “natively automate data lifecycle management by downsampling or dropping entire historical data partitions in bulk.” It adds that these workloads “seldom demand indefinite data retention.”

The Samsung paper treats ageing as a resource question. It says “Aging data should override new data as resources are exhausted”, and describes a roll-around design in which “the oldest records are overwritten by new records” once the space allocation is full.

The paper also notes that many analyses reason in calendar terms. It says “Many analyses require reasoning in terms of human-understandable concepts (e.g., hours, days, months).”

What one prototype measured

The Samsung paper describes a prototype it calls LTSS. It reports “in the order of 4 million RPS (without UDP packing)” on a single server with a 10G network card, and says that on a Raspberry Pi 2 it reached “an ingest capability of around 70K RPS.” It describes those results as “3x to 4x improvement over existing RDBMS solutions.” Its throughput section gives a wider range, “between 2x and 4x increase in ingestion throughput over the other systems.”

Those numbers come from the authors’ own system, data sets and hardware. The prototype does not compress its stored data yet. The results cover one prototype, tested on two hardware platforms and three public data sets.

Where the sources stop

Two sources are read in full here: Wikipedia and the Samsung paper. Two TechTarget pages on IoT time series databases returned no article text, so they are not used. The Samsung paper compares its prototype with other systems, including some commercial ones, but gives no prices and no cluster sizing. Choosing a product is a separate step that needs its own sources.

Common questions

What is a time series database?

Wikipedia calls it a software system optimized for handling time series data, which it describes as a sequence of data points indexed in chronological order.

Why do IoT systems use one?

Wikipedia says time series databases must ingest and index massive streams of sensor or metric data in real time. The Samsung paper says most database solutions provide SQL access but cannot support continuous ingest of large volumes of streaming data.

How does a time series database handle old data?

Wikipedia says TSDBs natively automate data lifecycle management by downsampling or dropping entire historical data partitions in bulk.

How fast is it?

The Samsung paper reports ingest in the order of 4 million records per second (without UDP packing) on a single server with a 10G network card, and about 70K records per second on a Raspberry Pi 2. Those figures come from the authors' own prototype and test data, so treat them as one result.

Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.

More from Industrial IoT

All industrial IoT articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.