Probe-Based Routing for Join Optimizer Selection
Vladimir Burlakov, Alena Rybakina, Sergey Kudashev, Ilgam Latypov, Konstantin Gilev, Alexander Demin, Denis Ponomaryov, Yuriy Dorn
Key points
From the paper's conclusion- On JOB and IMDb-CEB, the router lowers mean end-to-end time relative to the default rule, and on IMDb-CEB the probe features nearly double the gain obtained from the relation count alone, so they carry information about the queries that the relation count lacks.
Abstract
In optimizers that choose a join-order solver by a size rule, join ordering is an algorithm-selection problem, because dynamic programming (DP), genetic search (GEQO), and Monte Carlo tree search (MCTS) each win on different queries. PostgreSQL nevertheless chooses among them by relation count alone, although queries with the same relation count can favor different solvers. This paper introduces two landscape features that a probe computes from random join orders in microseconds per query. The tail spacing $\alpha$ describes how the costs of the best sampled orders are spaced, and the crossover surprise $\theta$ describes how far the cost of a crossover child deviates from the mean cost of its parents. The router clusters training queries by these features and the relation count, assigns a solver to every cluster that this solver wins in total end-to-end time by a margin, and leaves all other queries to PostgreSQL's default rule. On JOB and IMDb-CEB, the router lowers mean end-to-end time relative to the default rule, and on IMDb-CEB the probe features nearly double the gain obtained from the relation count alone, so they carry information about the queries that the relation count lacks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- When Is One Query per Template Enough? Adapting Learned Cost Models to New HardwarearXiv · 2026
- CATune: Structural Constraint-Aware Bayesian Optimization for DBMS Configuration TuningarXiv · 2026
- Learning to Rank Propagators in Constraint ProgrammingarXiv · 2026
- SEFRQO-Plus: a self-evolving query optimizer via large language models and retrieval-augmented generationThe VLDB Journal · 2026
- Dream-COP: Guiding Algorithm Discovery for Combinatorial Optimization Problems in an Experience WorldarXiv · 2026
- Yannakakis + : Practical Acyclic Query Evaluation with Theoretical GuaranteesACM Transactions on Database Systems · 2026