Loading…
Topic
Join Reordering
1 post about Join Reordering. Every summary links to the original.
- 1 post
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
The new cost-based join optimizer with reordering support for non-inner joins
ClickHouse introduces a new cost-based join optimizer (CBO) based on DPsub, an exhaustive dynamic-programming algorithm that finds the cheapest join order for queries with up to 12 tables. The optimizer is enabled by default in the upcoming 26.10 release. Unlike the previous greedy optimizer that only reordered inner joins, the new optimizer supports reordering of LEFT, RIGHT, FULL outer joins, as well as SEMI and ANTI joins, using a conflict detector to ensure correctness. The conflict detector admits only reorderings that preserve the query result and finds every valid plan in the search space, with testing on over 90,000 join trees and 2.8 million candidate plans. Performance tests show significant speedups, for example TPC-H Q2 improved by 55% and TPC-DS Q73 by 45% compared to the greedy default.
Weekly digest
The best engineering reads, once a week.