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

05/14/2023
by   Qiushi Bai, et al.
0

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.

READ FULL TEXT
research
10/18/2022

Efficient Evaluation of Arbitrary Relational Calculus Queries

The relational calculus (RC) is a concise, declarative query language. H...
research
12/29/2020

Example-Driven User Intent Discovery: Empowering Users to Cross the SQL Barrier Through Query by Example

Traditional data systems require specialized technical skills where user...
research
03/16/2020

Duoquest: A Dual-Specification System for Expressive SQL Queries

Querying a relational database is difficult because it requires users to...
research
07/01/2019

Using Database Rule for Weak Supervised Text-to-SQL Generation

We present a simple and novel way to do the task of text-to-SQL problem ...
research
03/13/2016

A Signaling Game Approach to Databases Querying and Interaction

As most database users cannot precisely express their information needs,...
research
05/09/2022

Think outside the search box: A comparative study of visual and form-based query builders

Knowledge workers such as healthcare information professionals, legal re...
research
08/13/2018

Database Operations in D4M.jl

Each step in the data analytics pipeline is important, including databas...

Please sign up or login with your details

Forgot password? Click here to reset