Skip to main content
QUICK REVIEW

[Paper Review] Robust Plan Evaluation based on Approximate Probabilistic Machine Learning

Amin Kamali, Verena Kantere|arXiv (Cornell University)|Jan 26, 2024
Data Management and AlgorithmsComputer Science5 citations
TL;DR

The paper introduces Roq, a robustness-focused query optimizer that uses approximate probabilistic ML to evaluate and select query plans, improving robustness over state-of-the-art methods.

ABSTRACT

Query optimizers in RDBMSs search for execution plans expected to be optimal for given queries. They use parameter estimates, often inaccurate, and make assumptions that may not hold in practice. Consequently, they may select plans that are suboptimal at runtime if estimates and assumptions are not valid. Therefore, they do not sufficiently support robust query optimization. Using ML to improve data systems has shown promising results for query optimization. Inspired by this, we propose Robust Query Optimizer (Roq), a holistic framework based on a risk-aware learning approach. Roq includes a novel formalization of the notion of robustness in the context of query optimization and a principled approach for its quantification and measurement based on approximate probabilistic ML. It also includes novel strategies and algorithms for query plan evaluation and selection. Roq includes a novel learned cost model that is designed to predict the cost of query execution and the associated risks and performs query optimization accordingly. We demonstrate that Roq provides significant improvements in robust query optimization compared with the state-of-the-art.

Motivation & Objective

  • Formalize robustness in query optimization.
  • Develop a risk-aware learning framework for plan evaluation.
  • Design a learned cost model that predicts execution cost and associated risks.
  • Propose strategies for robust plan evaluation and selection.
  • Demonstrate improvements over existing robust optimization approaches.

Proposed method

  • Define robustness in the context of query optimization.
  • Introduce Roq, a holistic framework with a probabilistic ML foundation.
  • Develop a learned cost model that estimates plan cost and risk.
  • Create strategies and algorithms for evaluating and selecting robust plans.
  • Quantify robustness using approximate probabilistic techniques.
  • Evaluate Roq against state-of-the-art baselines.

Experimental results

Research questions

  • RQ1How can robustness be formalized and measured in query optimization?
  • RQ2Can an approximate probabilistic ML approach improve plan evaluation and selection for robustness?
  • RQ3What is the impact of a learned cost model that incorporates risk on query optimization outcomes?
  • RQ4How does Roq perform relative to existing robust optimization methods?
  • RQ5What strategies best enable robust plan evaluation and selection in practice?

Key findings

  • Roq provides significant improvements in robust query optimization compared with the state-of-the-art.
  • A novel robustness formalization and risk-aware measurement framework are developed.
  • A learned cost model predicts query execution cost and associated risks.
  • New strategies and algorithms enable robust plan evaluation and selection.
  • Empirical results support the effectiveness of Roq in robust optimization scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.