Automatic View Generation with Deep Learning and Reinforcement Learning
Haitao Yuan, Guoliang Li, Ling Feng, Ji Sun, Yue Han
Abstract
Materializing views is an important method to reduce redundant computations in DBMS, especially for processing large scale analytical queries. However, many existing methods still need DBAs to manually generate materialized views, which are not scalable to a large number of database instances, especially on the cloud database. To address this problem, we propose an automatic view generation method which judiciously selects "highly beneficial" subqueries to generate materialized views. However, there are two challenges. (1) How to estimate the benefit of using a materialized view for a query? (2) How to select optimal subqueries to generate materialized views? To address the first challenge, we propose a neural network based method to estimate the benefit of using a materialized view to answer a query. In particular, we extract significant features from different perspectives and design effective encoding models to transform these features into hidden representations. To address the second challenge, we model this problem to an ILP (Integer Linear Programming) problem, which aims to maximize the utility by selecting optimal subqueries to materialize. We design an iterative optimization method to select subqueries to materialize. However, this method cannot guarantee the convergence of the solution. To address this issue, we model the iterative optimization process as an MDP (Markov Decision Process) and use the deep reinforcement learning model to solve the problem. Extensive experiments show that our method outperforms existing solutions by 28.4%, 8.8% and 31.7% on three real-world datasets.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Adaptive Code Learning for Spark Configuration Tuning cites A Learned Query Rewrite System using Monte Carlo Tree Search
- Adaptive Code Learning for Spark Configuration Tuning cites An End-to-End Learning-based Cost Estimator
- Adaptive Code Learning for Spark Configuration Tuning cites Reinforcement Learning with Tree-LSTM for Join Order Selection
- QueryFormer: A Tree Transformer Model for Query Plan Representation cites An End-to-End Learning-based Cost Estimator
- QueryFormer: A Tree Transformer Model for Query Plan Representation cites Reinforcement Learning with Tree-LSTM for Join Order Selection
- A Learned Query Rewrite System using Monte Carlo Tree Search cites An End-to-End Learning-based Cost Estimator
- A Learned Query Rewrite System using Monte Carlo Tree Search cites Reinforcement Learning with Tree-LSTM for Join Order Selection
- An End-to-End Learning-based Cost Estimator cites Reinforcement Learning with Tree-LSTM for Join Order Selection
- Reinforcement Learning with Tree-LSTM for Join Order Selection cites An End-to-End Learning-based Cost Estimator
- Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection cites A Learned Query Rewrite System using Monte Carlo Tree Search
- Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection cites An End-to-End Learning-based Cost Estimator
- Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection cites Reinforcement Learning with Tree-LSTM for Join Order Selection
Cited by top-tier papers23
- QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 citations
- A Learned Query Rewrite System using Monte Carlo Tree SearchXuanhe Zhou, Guoliang Li, Chengliang Chai, Jianhua FengVLDB 2022 · 85 citations
- Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan SelectionXiang Yu, Chengliang Chai, Guoliang Li, Jiabin LiuVLDB 2022 · 82 citations
- Adaptive Code Learning for Spark Configuration TuningChen Lin, Junqing Zhuang, Jiadong Feng, Hui Li et al.ICDE 2022 · 28 citations
- The Case for NLP-Enhanced Database Tuning: Towards Tuning Tools that "Read the Manual"Immanuel TrummerVLDB 2021 · 27 citations
Builds on2
Related papers
- View Selection over Knowledge Graphs in Triple StoresTheofilos Mailis, Yannis Kotidis, Stamatis Christoforidis, Evgeny Kharlamov et al.VLDB 2021 · 1 citation
- LORE: Learning-Based Resource Recommendation for Big Data QueriesYan Li, Liwei Wang, Bolong Zheng, Zhiyong PengICDE 2025 · 2 citations
- Learning a Partitioning Advisor for Cloud DatabasesBenjamin Hilprecht, Carsten Binnig, Uwe RöhmSIGMOD 2020 · 64 citations
- MVGPT: Generative Materialized View ForecastingYue Han, Guoliang Li, Wenchun Xu, Xianglei Ran et al.ICDE 2026
- Sibyl: Forecasting Time-Evolving Query WorkloadsHanxian Huang, Tarique Siddiqui, Rana Alotaibi, Carlo Curino et al.SIGMOD 2024 · 14 citations
