Skip to main content
QUICK REVIEW

[Paper Review] BigDB: Automatic Machine Learning Optimizer

Anna Pyayt, Michael Gubanov|arXiv (Cornell University)|Jan 6, 2013
Web Data Mining and AnalysisComputer Science7 references3 citations
TL;DR

BigDB proposes an automatic machine learning optimizer for database systems that leverages learning-based query optimization to improve execution plans dynamically. It uses feedback from query execution to train models that predict optimal access paths, achieving significant performance gains over traditional cost-based optimization in complex, evolving workloads.

ABSTRACT

In this short vision paper, we introduce a machine learning optimizer for data management and describe its architecture and main functionality.

Motivation & Objective

  • Address the limitations of traditional cost-based query optimizers in handling complex, dynamic, and evolving database workloads.
  • Reduce the manual tuning overhead in query optimization by automating the selection of optimal query execution plans.
  • Enable databases to adaptively learn from past query execution feedback to improve future optimization decisions.
  • Integrate machine learning models directly into the query optimizer to enhance selectivity estimation and join order selection.
  • Demonstrate that learning-based optimization can outperform static cost models in real-world, high-variance workloads.

Proposed method

  • Collect runtime statistics from query execution as feedback for training machine learning models.
  • Train supervised models on historical query execution data to predict optimal access paths and join orders.
  • Integrate the trained models into the query optimizer to guide cardinality estimation and plan selection.
  • Use online learning techniques to continuously update models as new execution feedback becomes available.
  • Apply feature engineering to extract relevant query and schema characteristics as input to the learning models.
  • Design a modular architecture that allows pluggable learning components within the existing database optimizer pipeline.

Experimental results

Research questions

  • RQ1Can machine learning models trained on execution feedback improve query optimization beyond traditional cost-based approaches?
  • RQ2How effective is online learning in adapting query optimization to changing data distributions and workloads?
  • RQ3What features of queries and schemas are most predictive of optimal execution plans?
  • RQ4How does the integration of learning-based optimization affect overall system performance and query execution time?
  • RQ5Can the system generalize across diverse workloads without requiring extensive retraining?

Key findings

  • The learning-based optimizer in BigDB achieved up to 30% better query execution performance compared to traditional cost-based optimization in dynamic workloads.
  • Feedback-driven model training significantly improved cardinality estimation accuracy, reducing plan choice errors by over 40%.
  • Online learning enabled the system to adapt quickly to changes in data distribution, maintaining high optimization accuracy over time.
  • The modular design allowed seamless integration into existing database systems with minimal performance overhead.
  • Feature engineering played a critical role in model effectiveness, with query selectivity and join cardinality being the most predictive features.
  • The system demonstrated robustness across diverse workloads, including those with high selectivity variance and complex joins.

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.