Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is time-series database?

What is time-series database e.g. InfluxDB ? When/where should I use it? Please give me sample of business scenarios for it .

like image 355
Mohammed Thabet Avatar asked Feb 08 '23 04:02

Mohammed Thabet


2 Answers

Check the wiki:

A time series database (TSDB) is a software system that is optimized for handling time series data, arrays of numbers indexed by time (a datetime or a datetime range). In some fields these time series are called profiles, curves, or traces. A time series of stock prices might be called a price curve. A time series of energy consumption might be called a load profile. A log of temperature values over time might be called a temperature trace.

Also the InfluxDB has the documentation about it and Thoughts on Time-series Databases.

Time series data is often used in scenarios where the data is collected at a fast pace like power plants where one needs to monitor the equipment's stress levels so that we can schedule preventative maintenance for it.

Similarly you can think of when you are observing the stock market where the data is coming at a faster rate and you need to track down the data and the associated time to it.

like image 186
Rahul Tripathi Avatar answered Feb 11 '23 06:02

Rahul Tripathi


Different vendors have their own definition of time series databases. Here are some interesting read:

InfluxDB

TimescaleDB

MemSQL

GridDB

In short, if the database is optimized for storing time series data then you are looking at a TSDB. This type of database typically have fast ingestion speed, many time series specific functions (such as ts aggregation, ts compression, data retention policy, etc.), the ability to scale and store large set of data, etc. 


like image 26
Codelicious Avatar answered Feb 11 '23 06:02

Codelicious