Questions tagged [timescaledb]

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension. QUESTIONS MUST BE ABOUT PROGRAMMING in order to be on-topic on Stack Overflow. Specifically, database administration is not on-topic for Stack Overflow.

TimescaleDB

TimescaleDB is an open-source database designed to make SQL scalable for time-series data. It is engineered up from PostgreSQL, providing automatic partitioning across time and space (partitioning key). It speaks full SQL and is correspondingly easy to use like a traditional relational database, yet scales in ways previously reserved for NoSQL databases.

Compared to the trade-offs demanded by these two alternatives (relational vs. NoSQL), TimescaleDB offers the best of both worlds for time-series data:

Features

Easy to Use

  • Full SQL interface for all SQL natively supported by PostgreSQL (including secondary indexes, non-time based aggregates, sub-queries, JOINs, window functions).
  • Connects to any client or tool that speaks PostgreSQL, no changes needed.
  • Time-oriented features, API functions, and optimizations.
  • Robust support for Data retention policies.

Scalable

  • Transparent time/space partitioning for both scaling up (single node) and scaling out (forthcoming).
  • High data write rates (including batched commits, in-memory indexes, transactional support, support for data backfill).
  • Right-sized chunks (two-dimensional data partitions) on single nodes to ensure fast ingest even at large data sizes.
  • Parallelized operations across chunks and servers.

Reliable

  • Engineered up from PostgreSQL, packaged as an extension.
  • Proven foundations benefiting from 20+ years of PostgreSQL research (including streaming replication, backups).
  • Flexible management options (compatible with existing PostgreSQL ecosystem and tooling).

Resources

691 questions
0
votes
1 answer

Postgres, TimescaleDB Setup: Unsure how to make all relevant binaries are in your PATH: pg_config

I'm setting up TimescaleDB, on a Windows 10 machine. https://docs.timescale.com/v0.9/getting-started/installation/windows/installation-windows It says a prerequisite is to: Make sure all relevant binaries are in your PATH: pg_config I am not exactly…
Philip Nguyen
  • 871
  • 2
  • 10
  • 29
0
votes
2 answers

How data is stored in timeseries database

I am curious to know that if i use any timeseries database to store my logs data, which is around thousands of records per second or million records a day, how will timeseries db will store this data internally. If i want to do analysis of data for…
ankita.gulati
  • 899
  • 1
  • 8
  • 15
0
votes
1 answer

CPU 100% usage caused by unknown postgres query

I installed timescaledb extension (v.5.0) for PostgreSQL (v9.6) on 16.04 Linux box and observes that Postgres process occupies 100% CPU: here is result of top command: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19885…
linh dinh
  • 58
  • 2
  • 7
0
votes
1 answer

Installing Timescaledb on Mac OS X, PostgreSQL 9.6 not found

I am trying to install Timescaledb on my Mac, http://docs.timescale.com/getting-started/installation?OS=mac&method=Source. The requirement for this is PostgreSQL 9.6 so I downloaded the postgres.app. However, when I try to build and install…
zsad512
  • 861
  • 3
  • 15
  • 41
-1
votes
2 answers

Does Timescale DB supports compression for geography type?

We use Timescale DB to store some data received from GPS trackers. Among the other metrics we, obviously, have the location value which is mapped to the geography(PointZ,4326) type. I'm concerned about how this kind of data would be compressed (or…
rtf_leg
  • 1,789
  • 1
  • 15
  • 27
-1
votes
2 answers

postgresql.conf file on TimescaleDB official Docker image is all commented, why?

The postgresql.conf file found in /var/lib/postgresql/data is all commented (I checked) like this: but when I try to get some configurations using: SELECT current_setting('autovacuum') why is that? Can I edit the file or there is another file on…
-1
votes
1 answer

How to convert an jsonb array and use stats moment

how are you? I needed to store an array of numbers as JSONB in PostgreSQL. Now I'm trying to calculate stats moments from this JSON, I'm facing some issues. Sample of my data: I already was able to convert a JSON into a float array. I used a…
-1
votes
1 answer

Separate Domain Model from Time Series Data?

In a scenario where you have a rather complex domain model (20+ interliked tables) and a lot of time series data (multiple TB, references to the domain model), would you use two different DBMS, one to store the data from the domain model (e.g.…
Win32
  • 149
  • 1
  • 9
-1
votes
2 answers

How can I change the format of Grafana query-variable from int to date using Timescale query?

I'm trying to create a query-variable using a Timescale data source. This is my query: select distinct datetime from test And what i get is: Preview of values All 1614556801000 1617235201000 1619827201000 1622505601000 1630454401000 The desired…
-1
votes
2 answers

Timescale DB manual compression disk space not reduced

When we do the manual compression, instead of decreases the free space it was increased. After compress, we have executed the vacuum command also. Screenshot after executing the replied queries. screenshot-with-replied-queries Sample…
-1
votes
2 answers

how to resolve GROUP BY error for ORDER BY column?

I want to select distinct status values odered by time. However, my following query, which groups by status and orders by time, shows error like time column must be added in group by. The query I tried is: select "status" from detail_status where…
Avz Vicky
  • 11
  • 9
-1
votes
1 answer

Position & Transaction database design for portfolio/risk management

I'm designing a database for tracking stock transactions & real-time portfolio holdings. The system should be able to pull historical position on a custom time-period basis (e.g. end of day holdings). My current design includes a transaction table…
-1
votes
1 answer

Ingest data in timescaleDB from kafka

I want to ingest data from a topic into timescaleDB. I have seen as options: jdbc connector or telegraf but i dont know if its proper or how to do it. Somebody has any idea of how to do it? thank you.
Nacho
  • 3
  • 5
-1
votes
1 answer

Optimizing the storage space, query speed, JSON column data in a Postgres table

Consider the following table that records the changes in prices of different products belonging to different companies of different categories. Column | Type | Modifiers -----------------+--------+----------- category_id | bigint | not…
Vignesh Raja
  • 7,927
  • 1
  • 33
  • 42
-2
votes
2 answers

Would it be possible to update the search query to only display devices that have been seen within the last 30 days?

SELECT name as "Device Name",description as "Description",last_seen_at as "Last Seen At",collector as "Collector",alias_name as "Alias Name", model as "Model",device_types as "Device Types",ip_function_type as "IP Function Type",system_oid as…
1 2 3
45
46