You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove outdated workaround from columnar sort planning (timescale#9809)
We used to have a workaround there that added cost to account for
projection needed by Sort node. It proved to be more harmful than
useful, so it was removed, but some code was left over. Remove it too.
The main part removed here:
timescale#8416
This leads to some 6x speedups on some queries to partially compressed
tables.
Copy file name to clipboardExpand all lines: tsl/test/shared/expected/bulk_decompression_limit.out
+10-35Lines changed: 10 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -65,14 +65,9 @@ OFFSET 5;
65
65
Chunk Status: PARTIAL
66
66
Reverse: true
67
67
Bulk Decompression: true
68
-
-> Sort (actual rows=2.00 loops=1)
68
+
-> Index Scan Backward using compress_hyper_X_X_chunk_device_id__ts_meta_v2_last_time___idx on _timescaledb_internal.compress_hyper_X_X_chunk (actual rows=2.00 loops=1)
-> Index Scan Backward using compress_hyper_X_X_chunk_device_id__ts_meta_v2_last_time___idx on _timescaledb_internal.compress_hyper_X_X_chunk (actual rows=2.00 loops=1)
-> Index Scan Backward using compress_hyper_X_X_chunk_device_id__ts_meta_v2_last_time___idx on _timescaledb_internal.compress_hyper_X_X_chunk (actual rows=2.00 loops=1)
-> Index Scan Backward using compress_hyper_X_X_chunk_device_id__ts_meta_v2_last_time___idx on _timescaledb_internal.compress_hyper_X_X_chunk (actual rows=2.00 loops=1)
-> Index Scan Backward using compress_hyper_X_X_chunk_device_id__ts_meta_v2_last_time___idx on _timescaledb_internal.compress_hyper_X_X_chunk (actual rows=1.00 loops=1)
-> Seq Scan on compress_hyper_X_X_chunk compress_hyper_X_X_chunk_1 (actual rows=4.00 loops=1)
1935
-
Filter: (device_id = 2)
1936
-
Rows Removed by Filter: 14
1931
+
-> Index Scan Backward using compress_hyper_X_X_chunk_device_id__ts_meta_v2_last_time___idx on compress_hyper_X_X_chunk compress_hyper_X_X_chunk_1 (actual rows=4.00 loops=1)
1932
+
Index Cond: (device_id = 2)
1937
1933
-> Index Scan using _hyper_X_X_chunk_metrics_compressed_device_id_time_idx on _hyper_X_X_chunk o2_1 (actual rows=0.00 loops=1)
1938
1934
Index Cond: (device_id = 2)
1939
1935
-> Custom Scan (ColumnarScan) on _hyper_X_X_chunk o2_2 (actual rows=5038.00 loops=1)
@@ -1948,12 +1944,8 @@ ORDER BY o1.time;
1948
1944
-> Merge Append (actual rows=3598.00 loops=1)
1949
1945
Sort Key: o1."time"
1950
1946
-> Custom Scan (ColumnarScan) on _hyper_X_X_chunk o1_1 (actual rows=2000.00 loops=1)
0 commit comments