Fabrízio de Royes Mello
38fcd1b76b
Improve Realtime Continuous Aggregate performance
...
When calling the `cagg_watermark` function to get the watermark of a
Continuous Aggregate we execute a `SELECT MAX(time_dimension)` query
in the underlying materialization hypertable.
The problem is that a `SELECT MAX(time_dimention)` query can be
expensive because it will scan all hypertable chunks increasing the
planning time for a Realtime Continuous Aggregates.
Improved it by creating a new catalog table to serve as a cache table
to store the current Continous Aggregate watermark in the following
situations:
- Create CAgg: store the minimum value of hypertable time dimension
data type;
- Refresh CAgg: store the last value of the time dimension materialized
in the underlying materialization hypertable (or the minimum value of
materialization hypertable time dimension data type if there's no
data materialized);
- Drop CAgg Chunks: the same as refresh cagg.
Closes #4699 , #5307
2023-03-22 16:35:23 -03:00
..
2022-12-21 12:53:29 +01:00
2022-11-25 15:48:29 +02:00
2022-11-04 11:06:01 +02:00
2022-11-02 15:14:18 +01:00
2022-11-18 16:31:47 -03:00
2022-11-18 16:31:47 -03:00
2022-08-25 10:38:03 +03:00
2022-11-18 16:31:47 -03:00
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2022-05-06 14:30:00 -03:00
2022-11-01 20:13:17 +05:30
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2023-01-26 20:11:21 +05:30
2023-01-26 20:11:21 +05:30
2023-01-26 20:11:21 +05:30
2023-01-26 20:11:21 +05:30
2023-01-26 20:11:21 +05:30
2023-02-10 22:12:29 +05:30
2023-02-10 22:12:29 +05:30
2023-02-10 22:12:29 +05:30
2023-02-10 22:12:29 +05:30
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2022-08-25 15:29:28 +03:00
2023-03-07 13:25:49 +02:00
2023-03-07 13:25:49 +02:00
2022-09-30 07:55:38 -07:00
2022-11-18 16:31:47 -03:00
2023-02-13 22:21:18 +01:00
2022-08-25 15:29:28 +03:00
2022-08-25 15:29:28 +03:00
2022-08-25 15:29:28 +03:00
2022-10-17 21:43:44 +05:30
2023-03-22 16:35:23 -03:00
2022-01-24 14:12:56 +01:00
2023-03-22 16:35:23 -03:00
2023-03-22 16:35:23 -03:00
2023-03-22 16:35:23 -03:00
2023-03-22 16:35:23 -03:00
2022-08-25 15:29:28 +03:00
2022-11-18 14:34:18 -03:00
2022-11-18 16:31:47 -03:00
2023-03-22 23:51:13 +05:30
2022-08-17 10:23:40 +03:00
2023-03-06 15:10:49 +01:00
2022-11-18 16:31:47 -03:00
2020-05-18 20:16:03 -04:00
2022-09-12 18:47:47 +05:30
2023-03-10 20:34:17 +04:00
2022-12-21 12:53:29 +01:00
2023-03-20 22:55:27 +05:30
2023-03-16 09:16:50 +01:00
2023-03-13 12:04:38 +01:00
2023-02-09 15:23:07 +01:00
2022-12-15 20:26:00 +05:30
2023-01-30 09:49:52 +01:00
2023-01-30 09:49:52 +01:00
2023-01-30 09:49:52 +01:00
2023-01-30 09:49:52 +01:00
2022-12-15 11:23:10 +01:00
2022-11-18 16:31:47 -03:00
2023-03-08 19:17:43 +05:30
2019-10-29 19:02:58 -04:00
2023-03-22 23:51:13 +05:30
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2023-03-15 18:22:01 +04:00
2023-01-13 13:54:27 +01:00
2023-02-21 19:52:03 +02:00
2022-09-12 18:47:47 +05:30
2023-02-08 16:12:01 +04:00
2020-10-02 08:52:20 +02:00
2022-11-18 16:31:47 -03:00
2022-11-24 16:08:06 +02:00
2022-11-24 19:15:40 +02:00
2022-11-07 21:20:08 +05:30
2023-03-13 17:43:48 +02:00
2023-02-14 19:32:41 +04:00
2022-10-19 17:57:54 +05:30
2023-03-08 14:14:25 +01:00
2022-11-23 19:21:05 +02:00
2022-10-17 21:43:44 +05:30
2022-10-17 21:43:44 +05:30
2022-10-17 21:43:44 +05:30
2022-10-17 21:43:44 +05:30
2023-02-03 13:35:36 +01:00
2023-02-03 13:35:36 +01:00
2023-02-03 13:35:36 +01:00
2023-02-03 13:35:36 +01:00
2022-11-18 16:31:47 -03:00
2023-03-15 18:22:01 +04:00
2023-03-08 14:14:25 +01:00
2023-03-08 14:14:25 +01:00
2023-03-08 14:14:25 +01:00
2023-03-08 14:14:25 +01:00
2022-11-18 16:31:47 -03:00
2023-02-08 16:12:01 +04:00
2023-02-08 16:12:01 +04:00
2023-02-08 16:12:01 +04:00
2023-02-08 16:12:01 +04:00
2023-02-28 15:49:19 +01:00
2023-02-28 15:49:19 +01:00
2023-02-28 15:49:19 +01:00
2023-02-28 15:49:19 +01:00
2023-03-15 18:22:01 +04:00
2023-03-15 18:22:01 +04:00
2023-03-15 18:22:01 +04:00
2023-03-15 18:22:01 +04:00
2022-11-18 16:31:47 -03:00
2022-09-15 07:56:12 +02:00
2022-11-18 16:31:47 -03:00
2023-02-13 22:21:18 +01:00
2022-09-12 18:47:47 +05:30
2023-02-13 22:21:18 +01:00
2023-02-13 22:21:18 +01:00
2023-02-09 17:57:17 +02:00
2023-02-28 16:32:03 +05:30
2022-11-16 13:58:52 +04:00
2022-09-12 18:47:47 +05:30
2022-09-12 18:47:47 +05:30
2022-09-12 18:47:47 +05:30
2022-11-17 21:18:23 +05:30
2023-01-30 12:13:00 +01:00
2022-11-14 17:35:50 +04:00
2022-11-07 14:20:10 +05:30
2022-11-07 14:20:10 +05:30
2022-11-18 16:31:47 -03:00
2023-03-08 14:14:25 +01:00
2022-09-12 18:47:47 +05:30
2022-09-12 18:47:47 +05:30
2022-09-12 18:47:47 +05:30
2022-10-17 21:43:44 +05:30
2022-11-18 16:31:47 -03:00
2022-10-17 21:43:44 +05:30
2023-03-15 18:22:01 +04:00
2022-10-17 21:43:44 +05:30
2022-10-17 21:43:44 +05:30
2022-10-17 21:43:44 +05:30
2022-10-17 21:43:44 +05:30
2020-05-27 17:31:09 +02:00
2020-05-27 17:31:09 +02:00
2022-10-17 21:43:44 +05:30
2022-12-06 12:07:49 +05:30
2021-12-20 10:02:57 +01:00
2023-02-09 17:57:17 +02:00
2023-03-02 13:20:08 +02:00
2021-06-23 19:32:46 +02:00
2023-03-22 23:51:13 +05:30
2023-03-22 23:51:13 +05:30
2023-03-22 23:51:13 +05:30
2023-03-22 23:51:13 +05:30
2023-03-08 19:17:43 +05:30
2023-03-08 19:17:43 +05:30
2023-03-08 19:17:43 +05:30
2023-03-08 19:17:43 +05:30
2022-12-20 21:11:35 +05:30
2023-03-22 23:51:13 +05:30
2023-03-22 23:51:13 +05:30
2023-03-22 23:51:13 +05:30
2023-03-22 23:51:13 +05:30
2022-11-18 16:31:47 -03:00
2022-11-02 15:14:18 +01:00