paper-with-me

홈 › Papers

Lero: A Learning-to-Rank Query Optimizer

2023-02-14 · Rong Zhu, Wei Chen, Bolin Ding, Xingguang Chen, Andreas Pfadler, Ziniu Wu, Jingren Zhou

A recent line of works apply machine learning techniques to assist or rebuild cost-based query optimizers in DBMS. While exhibiting superiority in some benchmarks, their deficiencies, e.g., unstable performance, high training cost, and slow model updating, stem from the inherent hardness of predicting the cost or latency of execution plans using machine learning models. In this paper, we introduce a learning-to-rank query optimizer, called Lero, which builds on top of a native query optimizer and continuously learns to improve the optimization performance. The key observation is that the relative order or rank of plans, rather than the exact cost or latency, is sufficient for query optimization. Lero employs a pairwise approach to train a classifier to compare any two plans and tell which one is better. Such a binary classification task is much easier than the regression task to predict the cost or latency, in terms of model efficiency and accuracy. Rather than building a learned optimizer from scratch, Lero is designed to leverage decades of wisdom of databases and improve the native query optimizer. With its non-intrusive design, Lero can be implemented on top of any existing DBMS with minimal integration efforts. We implement Lero and demonstrate its outstanding performance using PostgreSQL. In our experiments, Lero achieves near optimal performance on several benchmarks. It reduces the plan execution time of the native optimizer in PostgreSQL by up to 70% and other learned query optimizers by up to 37%. Meanwhile, Lero continuously learns and automatically adapts to query workloads and changes in data.

📄 PDF Abstract BibTeX arXiv:2302.06873

Code (1)

blondig/lero-on-postgresql 공식 구현 pytorch

Tasks

Binary ClassificationLearning-To-Rank

Methods 이 논문이 사용한 방법론

NON 설명 없음

Similar Papers 제목 키워드 기반

MICRO: A Lightweight Middleware for Optimizing Cross-store Cross-model Graph-Relation Joins [Technical Report]

2026-03-14 · Xiuwen Zheng, Arun Kumar, Amarnath Gupta arxiv

Modern data applications increasingly involve heterogeneous data managed in different models and stored across disparate database engines, often deployed as separate installs. Limited research has addressed cross-model q…

RNN-based Online Handwritten Character Recognition Using Accelerometer and Gyroscope Data

2019-07-24 · Davit Soselia, Shota Amashukeli, Irakli Koberidze, Levan Shugliashvili

This abstract explores an RNN-based approach to online handwritten recognition problem. Our method uses data from an accelerometer and a gyroscope mounted on a handheld pen-like device to train and run a character pre-di…

GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hints

2024-11-07 · Pavel Sulimov, Claude Lehmann, Kurt Stockinger

Query optimization has become a research area where classical algorithms are being challenged by machine learning algorithms. At the same time, recent trends in learned query optimizers have shown that it is prudent to t…

Low Rank Learning for Offline Query Optimization

2025-04-08 · Zixuan Yi, Yao Tian, Zachary G. Ives, Ryan Marcus

Recent deployments of learned query optimizers use expensive neural networks and ad-hoc search policies. To address these issues, we introduce \textsc{LimeQO}, a framework for offline query optimization leveraging low-ra…

Active Learning

Balsa: Learning a Query Optimizer Without Expert Demonstrations

2022-01-05 · Zongheng Yang, Wei-Lin Chiang, Sifei Luan, Gautam Mittal 외

Query optimizers are a performance-critical component in every database system. Due to their complexity, optimizers take experts months to write and years to refine. In this work, we demonstrate for the first time that l…

Deep Reinforcement Learning