@@ -1048,18 +1048,22 @@ set timescaledb.enable_transparent_decompression='hypercore';
10481048explain (costs off)
10491049select * from readings
10501050where time <= '2022-06-02' and device in (1, 4);
1051- QUERY PLAN
1052- ----------------------------------------------------------------------------------------------------------------------------------------------
1051+ QUERY PLAN
1052+ --------------------------------------------------------------------------------------------------------------------------------------------------------
10531053 Append
10541054 -> Custom Scan (DecompressChunk) on _hyper_1_1_chunk
10551055 Vectorized Filter: ("time" <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone)
1056- -> Seq Scan on compress_hyper_2_7_chunk
1057- Filter: ((_ts_meta_min_1 <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone) AND (device = ANY ('{1,4}'::integer[])))
1056+ -> Bitmap Heap Scan on compress_hyper_2_7_chunk
1057+ Recheck Cond: ((device = ANY ('{1,4}'::integer[])) AND (_ts_meta_min_1 <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone))
1058+ -> Bitmap Index Scan on compress_hyper_2_7_chunk_device__ts_meta_min_1__ts_meta_max_idx
1059+ Index Cond: ((device = ANY ('{1,4}'::integer[])) AND (_ts_meta_min_1 <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone))
10581060 -> Custom Scan (DecompressChunk) on _hyper_1_2_chunk
10591061 Vectorized Filter: ("time" <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone)
1060- -> Seq Scan on compress_hyper_2_8_chunk
1061- Filter: ((_ts_meta_min_1 <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone) AND (device = ANY ('{1,4}'::integer[])))
1062- (9 rows)
1062+ -> Bitmap Heap Scan on compress_hyper_2_8_chunk
1063+ Recheck Cond: ((device = ANY ('{1,4}'::integer[])) AND (_ts_meta_min_1 <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone))
1064+ -> Bitmap Index Scan on compress_hyper_2_8_chunk_device__ts_meta_min_1__ts_meta_max_idx
1065+ Index Cond: ((device = ANY ('{1,4}'::integer[])) AND (_ts_meta_min_1 <= 'Thu Jun 02 00:00:00 2022 PDT'::timestamp with time zone))
1066+ (13 rows)
10631067
10641068select sum(humidity) from readings
10651069where time <= '2022-06-02' and device in (1, 4);
0 commit comments