论文标题

有效选择数据库教育的信息性替代关系查询计划

Efficient Selection of Informative Alternative Relational Query Plans for Database Education

论文作者

Wang, Hu, Li, Hui, Bhowmick, Sourav S, Ma, Zihao, Cui, Jiangtao

论文摘要

学习数据库系统课程的学习者的一个关键学习目标是了解如何在RDBMS中处理SQL查询。为此,理解基于成本的不同计划选择的比较以选择查询的查询执行计划(QEP)至关重要。不幸的是,现成的RDBM通常仅将所选QEP暴露于用户,而无需透露有关以学习友好方式选择QEP选择的代表性替代查询计划的信息,从而阻碍了学习过程。在本文中,我们提出了一个名为Arena的端到端和通用框架,该框架有助于探索给定SQL查询的信息替代查询计划,以帮助理解QEP选择。在引擎盖下,竞技场解决了一个称为替代计划选择问题(提示)的新颖问题,该问题旨在从底层计划空间中发现一组K替代计划,以便最大程度地提高计划的趣味性。具体来说,我们探讨了问题的两个变体,即批处理提示和增量技巧,以迎合各种学习者。由于问题的计算硬度,我们提出了2个近似算法,以有效地解决它。对现实世界学习者的详尽实验研究表明,竞技场在增强学习者对QEP选择过程中考虑的替代计划选择的理解方面的有效性。

A key learning goal of learners taking database systems course is to understand how SQL queries are processed in an RDBMS in practice. To this end, comprehension of the cost-based comparison of different plan choices to select the query execution plan (QEP) of a query is paramount. Unfortunately, off-the-shelf RDBMS typically only expose the selected QEP to users without revealing information about representative alternative query plans considered during QEP selection in a learner-friendly manner, hindering the learning process. In this paper, we present a novel end-to-end and generic framework called ARENA that facilitates exploration of informative alternative query plans of a given SQL query to aid the comprehension of QEP selection. Under the hood, ARENA addresses a novel problem called alternative plan selection problem (TIPS) which aims to discover a set of k alternative plans from the underlying plan space so that the plan interestingness of the set is maximized. Specifically, we explore two variants of the problem, namely batch TIPS and incremental TIPS, to cater to diverse set of learners. Due to the computational hardness of the problem, we present a 2 approximation algorithm to address it efficiently. Exhaustive experimental study with real-world learners demonstrates the effectiveness of arena in enhancing learners' understanding of the alternative plan choices considered during QEP selection.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源