arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.08272cs.DB
收藏

QueryBooster:使用中间件服务进行以人为中心的查询重写以提升SQL性能

QueryBooster: Improving SQL Performance Using Middleware Services for Human-Centered Query Rewriting

Qiushi Bai, Sadeem Alsudais, Chen Li

AI总结:

QueryBooster提出基于中间件的服务架构,通过VarSQL规则语言和示例学习,实现以人为中心的SQL查询重写,提升端到端查询性能。

摘要:

SQL查询性能在数据库应用中至关重要,查询重写是一种将原始查询转换为性能更优的等价查询的技术。在广泛的数据库支持系统中,存在一个独特的问题:应用层和数据库层都是黑盒,开发者需要利用他们对数据和领域的知识来重写从应用发送到数据库的查询,以获得更好的性能。不幸的是,现有解决方案没有给用户足够的自由度来表达他们的重写需求。为了解决这个问题,我们提出了QueryBooster,一种新颖的基于中间件的服务架构,用于以人为中心的查询重写,用户可以使用其表达性强且易于使用的规则语言(称为VarSQL)根据需求制定重写规则。它还允许用户通过提供原始查询及其重写查询的示例来表达重写意图。QueryBooster自动将这些示例泛化为重写规则,并推荐高质量的规则。我们进行了一项用户研究,以展示VarSQL在制定重写规则方面的优势。我们在真实和合成工作负载上的实验表明,规则推荐框架的有效性以及使用QueryBooster进行以人为中心的查询重写以改善端到端查询性能的显著优势。

英文摘要:

SQL query performance is critical in database applications, and query rewriting is a technique that transforms an original query into an equivalent query with a better performance. In a wide range of database-supported systems, there is a unique problem where both the application and database layer are black boxes, and the developers need to use their knowledge about the data and domain to rewrite queries sent from the application to the database for better performance. Unfortunately, existing solutions do not give the users enough freedom to express their rewriting needs. To address this problem, we propose QueryBooster, a novel middleware-based service architecture for human-centered query rewriting, where users can use its expressive and easy-to-use rule language (called VarSQL) to formulate rewriting rules based on their needs. It also allows users to express rewriting intentions by providing examples of the original query and its rewritten query. QueryBooster automatically generalizes them to rewriting rules and suggests high-quality ones. We conduct a user study to show the benefits of VarSQL to formulate rewriting rules. Our experiments on real and synthetic workloads show the effectiveness of the rule-suggesting framework and the significant advantages of using QueryBooster for human-centered query rewriting to improve the end-to-end query performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑