PilotScope: Steering Databases with Machine Learning Drivers

Author:

Zhu Rong1,Weng Lianggui1,Wei Wenqing2,Wu Di3,Peng Jiazhen4,Wang Yifan5,Ding Bolin1,Lian Defu6,Zheng Bolong7,Zhou Jingren1

Affiliation:

1. Alibaba Group, Hangzhou, China

2. Alibaba Group, USTC, Hangzhou, China

3. Alibaba Group, HUST, Hangzhou, China

4. Alibaba Group, ZJU, Hangzhou, China

5. Alibaba Group, UFL, Hangzhou, China

6. USTC, Hefei, China

7. HUST, Wuhan, China

Abstract

Learned databases, or AI4DB techniques, have rapidly developed in the last decade. Deploying machine learning (ML) and AI4DB algorithms into actual databases is the gold standard to examine their performance in practice. However, due to the complexity of database systems, the difference between ML and DB programming paradigms, and the diversity of ML models, the tasks of developing and deploying AI4DB algorithms into databases are prohibitively difficult. Most previous works focus on specific AI4DB algorithms and ML models whose deployment requires close cooperation between ML and DB developers and heavy engineering cost. In this paper, we design and implement PilotScope, an AI4DB middleware with a programming model that largely reduces such difficulties. With a novel abstraction of AI4DB algorithms for, e.g. , knob tuning and query optimization, PilotScope consists of two classes of components, AI4DB drivers and DB interactors , with different programming paradigms and roles in AI4DB tasks. ML developers focus on designing and implementing AI4DB drivers, which are algorithmic workflows that collect statistics from databases, train ML models, make decisions and optimize databases using learned models. AI4DB drivers interact with databases via DB interactors ( e.g. , for collecting data and enforcing actions in databases). DB developers focus on implementing these interactors on one or more database engines, with the interaction details hindered from ML developers. PilotScope supports a variety of AI4DB tasks, and the implementation of an AI4DB algorithm on PilotScope can be deployed in different databases with only minimum modifications. PilotScope is effective in benchmarking these AI4DB algorithms in real-world scenarios. We hope that PilotScope could significantly accelerate iterating AI4DB research and make AI4DB techniques truly applicable in production.

Publisher

Association for Computing Machinery (ACM)

Reference78 articles.

1. 2020. Anytime Algorithm of Database Tuning Advisor for Microsoft SQL Server. https://www.microsoft.com/en-us/research/publication/anytime-algorithm-of-database-tuning-advisor-for-microsoft-sql-server/.

2. 2020. Bao appendix. https://rmarcus.info/appendix.html.

3. 2020. Implementation of DeepDB: Learn from Data not from Queries! https://github.com/DataManagementLab/deepdb-public.

4. 2020. A prototype implementation of Bao for PostgreSQL. https://github.com/learnedsystems/BaoForPostgreSQL.

5. 2021. NoisePage - Database Management System Project. https://noise.page/.

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Low Rank Approximation for Learned Query Optimization;Proceedings of the Seventh International Workshop on Exploiting Artificial Intelligence Techniques for Data Management;2024-06-09

2. Learned Query Optimizer: What is New and What is Next;Companion of the 2024 International Conference on Management of Data;2024-06-09

3. A learned cost model for big data query processing;Information Sciences;2024-06

4. Lero: applying learning-to-rank in query optimizer;The VLDB Journal;2024-04-25

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3