Modelling many-to-many relationships in timescaledb
I’m currently using timescaledb to model trades and quotes. In our system, many trades can be associated with many quotes and vice versa, which leads to a many-to-many relationship. Our trades table...
View ArticleWhy does adding a query condition affect the results?
with full_data as (select time_bucket_gapfill('1 day':: interval, "recode_time") full_time, meter_code, interpolate(max(max_reading)) max_reading from water_downsampling_day where meter_code =...
View ArticleWhy does a union kill performance, when its fine to run the queries one-by-one?
I need to run a query that selects data from three tables. The “first” of the three is a timescaledb hypertable. I have “organized” my query into three parts. If I run any of the three parts...
View ArticleTime_bucket_gapfill to start on Sunday and not Monday with bucket_width='weekly
Hey everyone. I use the time_bucket_gapfill function, with a weekly bucket width. the output is always returned such that the week starts on monday. For example - even when specifying these...
View ArticleConfig not working in timescale ha docker container
When running a timescale ha docker container, postgres config is not being used.: Provide a TL;DR of the problem TimescaleDB version: 2.10.1 PostgreSQL version: 14 Other software: Docker: 26.1.4 OS:...
View ArticleSupported versions/End of Life
Is there a list where I can see which extensions are currently supported, and which are End of Life or end of support? 1 post - 1 participant Read full topic
View ArticleMove of data from one database instance to another - how?
I have two database instances. One is postgres 15 on redhat with timescale 2.15 The other is an old postgres 9 on centos with timescale 1.3. I want to move all the data from the old server into the...
View ArticleNot able to drop the chunk manually
Hello Team, My timescale DB is hosted in kubernetes, we have configured the dropping of old data automatically. Result of latest run for dropping old chunks is: SELECT * FROM...
View ArticleBRIN Index in postgres
Hello Team, We want to fetch 3 months old data, and the total data size is close to 370GB, wanted to have clarity. Does the BRAIN index will help in this case? The column where I am applying BRAIN...
View ArticleLarge number of tables: system in recovery mode
HI All, very much a newbie when it comes to databases. I am trying to store stock market data in a TimeScaleDB running in a docker container on a linux server. The software package that i use wants me...
View ArticleToo slow query when filtering for date range + LIMIT 1 on large table
Hi guys! I have a hypertable consisting of around 20million entries. When filtering for date entries (< mydate) LIMIT 1 I still have query times of around 250ms-1sec which is too slow for my use...
View ArticleHelp moving DB to new server
I’m trying to migrate an old host that is on Psql v14 with timescale version 2.6.1 to a new server with Psql v16 and ts 2.15.1. I’ve already tried by first cloning the old server to a temporary...
View ArticleRefresh Continuous Aggregates take forever
Hey all, I’m having an issue where refreshing continuous aggregates take forever and it seems to be in a “stuck” state. There are no other ongoing hanging queries in db except for the refresh...
View ArticleTimescaledb extension in Azure PostgreSQL flexible server
I want to use the compress feature for the timescaledb extension on Microsoft Azure PostgreSQL flexible server. I need this feature because my data is growing very fast, but the Apache license on...
View ArticleVERY Slow query execution with simple time condition
I have stock 1 minute data DB organized in hypertable, chunks = 1 day. i used 2 minutes CAGG . query = “”" SELECT * FROM m2 WHERE time >= ‘2024-03-28T00:00:00’ ORDER BY ticker"“” As you can see...
View ArticleHow to determine whether a continuous aggregation has completed computation...
How to determine whether a continuous aggregation has completed computation and storage? Create a continuous aggregation: CREATE MATERIALIZED VIEW WATER_DOWNSAMPLING_HOUR WITH (TIMESCALEDB....
View ArticleError unpacking rpm package timescaledb-toolkit
I’ve tried many different versions of timescaledb-tookit and all fail with the following: $ yum install timescaledb-toolkit-postgresql-16 Installing : timescaledb-toolkit-postgresql-16-1.18.0-0.x86_64...
View ArticleThe latest chunk query slow
hi: I have a Timescaledb data table, which is partitioned according to 15 days. When I wrote some data in it, I found that when executing a simple query, the query was the slowest for the data in the...
View ArticleHigh CPU Usage in PostgreSQL Service
Hello, I have a docker swarm architecture, where 2 different database service is running. One is TimescaleDB HA Service with 3 Patroni Cluster and 3 ETCD Cluster, one-one container deployed on each...
View ArticleContinuous aggregate edge case (using LAG in view)
I’m in the process of migrating from Timestream to Timescale Cloud and want to get off on the right foot for ingestion and real-time aggregates. I get meter data with an accumulating “consumption”...
View Article