Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
58 views

I wanted to see if anyone can suggest ways around this before I give up on it entirely as an option. We have a Postgres (14) TimescaleDB database. It has several hypertables, each of which is ...
user1407764's user avatar
1 vote
1 answer
163 views

I have created multiple continous aggregates on my hypertable using timescaledb 2.15.3 extension in postgreSQL 15. When inserting historical data to this hypertable, I have to manually refresh all ...
Aamir Dalal's user avatar
1 vote
0 answers
159 views

I have a tick table in timescaledb as follows from which I create a materialized view for 1-minute OHLC bars with its corresponding refresh policy. However, my tick_1min table does not end up having ...
shashashamti2008's user avatar
0 votes
1 answer
186 views

CREATE TABLE sku_usage ( -- create a regular table time timestamptz NOT NULL, device_id uuid NOT NULL, loyalty_program_id text NOT NULL, sku text NOT NULL, quantity double ...
friartuck's user avatar
  • 3,171
1 vote
1 answer
917 views

I'm new in Timescaledb and I'm exploring the continuous aggregates. I use the docker image timescale/timescaledb-ha:pg14 (PostgreSQL 14 with Timescaledb v2.11.1) I have historical data which are half-...
chdegrave's user avatar
0 votes
2 answers
251 views

I collect device ON/OFF events in a timeseries table. Following is a sample data. time_stamp state 2023-10-04 10:05:53 0 2023-10-04 10:15:58 1 2023-10-04 10:30:59 0 2023-10-04 10:40:00 1 2023-10-04 ...
user1145404's user avatar
0 votes
1 answer
118 views

I have a hierarchal aggregate that uses below statement CREATE MATERIALIZED VIEW IF NOT EXISTS public.values_summary_five_minutes WITH (timescaledb.continuous,timescaledb.materialized_only = true) AS ...
Amit Kumar's user avatar
0 votes
1 answer
726 views

Here is my hypertable - CREATE TABLE prices_daily ( datetime TIMESTAMP WITH TIME ZONE NOT NULL, security_id BIGINT NULL, open DOUBLE PRECISION NOT NULL, high DOUBLE PRECISION NOT NULL, low DOUBLE ...
Maddy's user avatar
  • 65
5 votes
1 answer
938 views

I am using the latest docker version of Postgres 14.3 and Timescale 2.7.0. I am running some benchmarks to make sure timescaledb is the right solution for my client. I have a hypertable with 50 ...
jbx's user avatar
  • 22.3k
0 votes
1 answer
451 views

I have a table data that looks something like this (simplified for the post): |insert_ts | actual_ts | group_id| amount| |2022-02-22 00:01:01| 2022-02-06 05:05:01 | 1 | 100|...
jbx's user avatar
  • 22.3k
1 vote
1 answer
824 views

In TimescaleDB I have a continuous aggregate which contains daily averages, so bucket size is 1 day: CREATE MATERIALIZED VIEW sensors_daily WITH (timescaledb.continuous, timescaledb.materialized_only=...
Wintermute's user avatar
2 votes
0 answers
514 views

I have a read-only user which has been granted select on all tables including default privileges for any future schema additions. I have a Continuous Aggregate on a TimescaleDB Hypertable. The read-...
jbx's user avatar
  • 22.3k
3 votes
0 answers
1k views

I use this query to create a continuous aggregate on one of my hypertables: CREATE MATERIALIZED VIEW logschema."aggregateValveMovementDaily" WITH (timescaledb.continuous) AS SELECT "...
Paul Müller's user avatar
6 votes
1 answer
1k views

I am experiencing real time aggregation not to be up to date in real time. Is there something I am missing? A reproducible example on version 2.4.2 using the current docker image timescale/timescaledb:...
Pasukaru's user avatar
  • 1,105
1 vote
0 answers
692 views

I'm trying to create a continuous aggregate view on a hypertable with the policy to refresh the view once a day. The first time it runs when I create the view was smooth, everything looked fine on ...
Sam Vo's user avatar
  • 113
4 votes
3 answers
1k views

Have hypertable table with a couple million rows. I'm able to select the size of this just fine using the following: SELECT pg_size_pretty( pg_total_relation_size('towns') ); I also have a continuous ...
Nicole Staline's user avatar
2 votes
1 answer
5k views

My understanding of creating a materialized view WITH NO DATA was that no records would be loaded until I or a policy I've set refresh the view. However, when using timescaledb and providing this ...
Nicole Staline's user avatar
0 votes
0 answers
160 views

Imagine you have to display information about rainfall based on cities over time. You have tables the provides the details on how much it rains in a specific city for every hour. There is an endpoint ...
Nicole Staline's user avatar
1 vote
0 answers
241 views

I have the following Query for my timescaleDB that I want to optimize SELECT sensor_reading.day as day, sensor_delta_daily, pos1_daily, (sensor_delta_daily * 1 * calorific_value_daily)...
flumingo's user avatar
  • 513
1 vote
1 answer
2k views

I have created a hypertable water_meter to store the sensor data It contains following data ordered by timestamp in ascending order select * from water_meter order by time_stamp; As can be seen I have ...
Swapnil's user avatar
  • 25
1 vote
2 answers
2k views

I am new to TimeScaleDB, I have created a continuous aggregate view as CREATE MATERIALIZED VIEW minute_data WITH (timescaledb.continuous) AS SELECT time_bucket('1 min', time_stamp) as bucket, ...
Swapnil's user avatar
  • 25
3 votes
1 answer
2k views

I've got a couple time series data tables in my Postgres database, which I recently converted to TimescaleDB hypertables. I've got a massive materialized view, but refreshing that takes ages. For that ...
kramer65's user avatar
  • 54.5k
0 votes
1 answer
1k views

Continuous Aggregation Refresh takes long time for even small volume of data This is regarding the continuous aggregation and refreshing it. We ran the following queries and noted the observations. ...
BilalS10's user avatar
4 votes
1 answer
3k views

I am trying to use the TimescaleDB extension to compute some continuous aggregates. I have this query which works fine: SELECT distinct time_bucket('1 hour', entry_ts) as date_hour, ...
jbx's user avatar
  • 22.3k