v.22.11Improvement
Implement Default read-in-order Optimization in Query Plan
Implementread-in-orderoptimization on top of query plan. It is enabled by default. Setquery_plan_read_in_order = 0to use previous AST-based version. #42829 (Nikolai Kochetov).
Why it matters
This feature replaces the previous AST-basedread-in-order optimization with a more effective query plan-based approach. It aims to enhance query performance by optimizing the order in which data is read, benefiting users with faster and more efficient query processing.How to use it
The newread-in-order optimization is enabled by default. To revert to the previous AST-based behavior, set the setting query_plan_read_in_order = 0 in your query or configuration.