Leveraging Application Data Constraints to Optimize Database-Backed Web Applications

被引:4
|
作者
Liu, Xiaoxuan [1 ]
Wang, Shuxian [1 ]
Sun, Mengzhu [1 ]
Pan, Sicheng [1 ]
Li, Ge [1 ]
Jha, Siddharth [1 ]
机构
[1] Univ Calif Berkeley, Berkeley, CA 94720 USA
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2023年 / 16卷 / 06期
关键词
EFFICIENT ALGORITHM; QUERY;
D O I
10.14778/3583140.3583141
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Exploiting the relationships among data is a classical query optimization technique. As persistent data is increasingly being created and maintained programmatically, prior work that infers data relationships from data statistics misses an important opportunity. We present Coco, the first tool that identifies data relationships by analyzing database-backed applications. Once identified, Coco leverages the constraints to optimize the application's physical design and query execution. Instead of developing a fixed set of predefined rewriting rules, Coco employs an enumerate-test-verify technique to automatically exploit the discovered data constraints to improve query execution. Each resulting rewrite is provably equivalent to the original query. Using 14 real-world web applications, our experiments show that Coco can discover numerous data constraints from code analysis and improve real-world application performance significantly.
引用
收藏
页码:1208 / 1221
页数:14
相关论文
共 50 条