v.20.1Improvement
Implement ORDER BY Optimization for Merge, Buffer, and Materialized View Storages
ImplementORDER BYoptimization forMerge,BufferandMaterilized Viewstorages with underlyingMergeTreetables. #8130 (Anton Popov)
Why it matters
This feature improves query performance by optimizing how data is ordered and merged in storages that rely onMergeTree underlying tables. It reduces overhead and enhances efficiency when reading from Merge, Buffer, and Materialized View storages by better leveraging the ORDER BY clause.How to use it
Users benefit from this optimization automatically when usingMerge, Buffer, or Materialized View tables built on MergeTree engines. No explicit action is required other than using these storages with ORDER BY clauses defined in the underlying tables.