1
0
mirror of https://github.com/timescale/timescaledb.git synced 2025-05-26 00:00:54 +08:00
Jan Nidzwetzki df32ad4b79 Optimize compressed chunk resorting
This patch adds an optimization to the DecompressChunk node. If the
query 'order by' and the compression 'order by' are compatible (query
'order by' is equal or a prefix of compression 'order by'), the
compressed batches of the segments are decompressed in parallel and
merged using a binary heep. This preserves the ordering and the sorting
of the result can be prevented. Especially LIMIT queries benefit from
this optimization because only the first tuples of some batches have to
be decompressed. Previously, all segments were completely decompressed
and sorted.

Fixes: 

Co-authored-by: Sotiris Stamokostas <sotiris@timescale.com>
2023-05-02 10:46:15 +02:00
..
2023-04-18 08:57:52 +02:00
2023-04-18 08:57:52 +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
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
2022-12-06 12:07:49 +05:30
2023-03-02 13:20:08 +02:00