Generating Custom Learned Cost Model for Query Optimizer of DBMS

被引:0
作者
Ouared, Abdelkader [1 ]
Amrani, Moussa [2 ]
Schobbens, Pierre-Yves [2 ]
机构
[1] Univ Tiaret, Dept Comp Sci, BP 78 Zaaroura, Tiaret 14000, Algeria
[2] Univ Namur, Fac Comp Sci, NaDI, Rue Grandgagnage 21, B-5000 Namur, Belgium
来源
MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT, MODELSWARD 2023 | 2024年 / 2106卷
关键词
Learned database cost model; Database management system; Meta-Learning; Generic interface; Code generator; METRICS;
D O I
10.1007/978-3-031-66339-0_2
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Designers and developers of database management systems (DBMS) build increasingly specialized efficient query optimizer in order to deliver improved performance. This query optimizer uses a database Cost Model (CM) that is embedded inside these DBMSs. Currently, database CMs have to be manually calibrated for each database technology evolution and new requirements which is a costly and error prone process. Moreover, writing CM programs on DBMS distribution code like PostgreSQL and MySQL for specific platforms is hard since this requires the code to be tuned at a low level with architecture of the query optimizer that are fundamentally based on general-purpose programming languages. In this paper, we propose a framework to design and calibrate automatically the cost model of the query optimizer automatically. Our framework provides a code generation that allow user applications to fully generate the cost of database operation of a target DBMS by changing the model specification (e.g. the data primitives of the used data layout, data indexing, and the chosen algorithm of database operations). In addition, to CM code specialization for a specific hardware platform requires a machine learning component that is used as an external tool to automatically calibrate the CM under design. A proof-of-concept prototype is implemented by considering the CM that exists in PostgreSQL optimizer.
引用
收藏
页码:29 / 53
页数:25
相关论文
共 30 条
[11]  
Kraska Tim, 2021, Sagedb: a learned database system
[12]  
Manegold S., 2002, Proceedings of the Twenty-eighth International Conference on Very Large Data Bases, P191
[13]  
Ouared A., 2017, P S APPL COMP, P1820
[14]  
Ouared A., 2017, ER FORUM DEMOS, P44
[15]  
Ouared A., 2023, MODELSWARD, P43
[16]   COMORP: Rapid prototyping for mathematical database cost models development [J].
Ouared, Abdelkader ;
Amrani, Moussa ;
Schobbens, Pierre-Yves .
JOURNAL OF COMPUTER LANGUAGES, 2022, 73
[17]   Using MDE for Teaching Database Query Optimizer [J].
Ouared, Abdelkader ;
Chadli, Abdelhafid .
ENASE: PROCEEDINGS OF THE 16TH INTERNATIONAL CONFERENCE ON EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, 2021, :529-536
[18]   Moving Database Cost Models from Darkness to Light [J].
Ouared, Abdelkader ;
Kharroubi, Fatima Zohra .
SMART APPLICATIONS AND DATA ANALYSIS, SADASC 2020, 2020, 1207 :17-32
[19]   DeepCM: Deep neural networks to improve accuracy prediction of database cost models [J].
Ouared, Abdelkader ;
Chadli, Abdelhafid ;
Daoud, Mohamed Amine .
CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2022, 34 (10)
[20]   Capitalizing the database cost models process through a service-based pipeline [J].
Ouared, Abdelkader ;
Ouhammou, Yassine .
CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2023, 35 (11)