Automatic Detection of Performance Bugs in Database Systems using Equivalent Queries

被引:12
|
作者
Liu, Xinyu [1 ]
Zhou, Qi [2 ]
Arulraj, Joy [1 ]
Orso, Alessandro [1 ]
机构
[1] Georgia Inst Technol, Atlanta, GA 30332 USA
[2] Meta, Seattle, WA USA
来源
2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022) | 2022年
关键词
Differential testing; database testing; query optimization;
D O I
10.1145/3510003.3510093
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Because modern data-intensive applications rely heavily on database systems (DBMSs), developers extensively test these systems to eliminate bugs that negatively affect functionality. Besides functional bugs, however, there is another important class of faults that negatively affect the response time of a DBMS, known as performance bugs. Despite their potential impact on end-user experience, performance bugs have received considerably less attention than functional bugs. To fill this gap, we present AMOEBA, a technique and tool for automatically detecting performance bugs in DBMSs. The core idea behind AMOEBA is to construct semantically equivalent query pairs, run both queries on the DBMS under test, and compare their response time. If the queries exhibit significantly different response times, that indicates the possible presence of a performance bug in the DBMS. To construct equivalent queries, we propose to use a set of structure and expression mutation rules especially targeted at uncovering performance bugs. We also introduce feedback mechanisms for improving the effectiveness and efficiency of the approach. We evaluate AMOEBA on two widely-used DBMSs, namely PostgreSQL and CockroachDB, with promising results: AMOEBA has so far discovered 39 potential performance bugs, among which developers have already confirmed 6 bugs and fixed 5 bugs.
引用
收藏
页码:225 / 236
页数:12
相关论文
共 50 条
  • [21] Equivalent baseband channels of systems using envelope detection
    Paul, Henning
    Kammeyer, Karl-Dirk
    AEU-INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATIONS, 2009, 63 (07) : 533 - 540
  • [22] Oracle Database Performance Improvement: Using Trustworthy Automatic Database Diagnostic Monitor Technology
    Arb, Ghusoon Idan
    INTERNATIONAL JOURNAL OF MATHEMATICS AND COMPUTER SCIENCE, 2024, 19 (03): : 881 - 892
  • [23] High Performance SQL Queries on Compressed Relational Database
    Bhuiyan, Mohammad Masumuzzaman
    Hoque, Abu Sayed Md. Latiful
    JOURNAL OF COMPUTERS, 2009, 4 (12) : 1263 - 1274
  • [24] Experimenting with recursive queries in database and logic programming systems
    Terracina, G.
    Leone, N.
    Lio, V.
    Panetta, C.
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2008, 8 : 129 - 165
  • [25] GenerIE: Information Extraction Using Database Queries
    Tari, Luis
    Phan Huy Tu
    Hakenberg, Joerg
    Chen, Yi
    Tran Cao Son
    Gonzalez, Graciela
    Baral, Chitta
    26TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING ICDE 2010, 2010, : 1121 - 1124
  • [26] Strategies and Performance Analysis of Queries Associated with Cloud Database
    Prakash, Mishra Jyoti
    Sourav, Prasad Suman
    Kumar, Mishra Sambit
    ADVANCES IN DATA SCIENCE AND MANAGEMENT, 2020, 37 : 225 - 233
  • [27] Image database retrieval using sketched queries
    Chalechale, A
    Naghdy, G
    Premaratne, P
    ICIP: 2004 INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, VOLS 1- 5, 2004, : 433 - 436
  • [28] Optimizing SQL Queries in OT,AP Database Systems
    Myalapalli, Vamsi Krishna
    Dussa, Karthik
    2015 IEEE INTERNATIONAL CONFERENCE ON INFORMATION PROCESSING (ICIP), 2015, : 833 - 838
  • [29] On supporting containment queries in relational database management systems
    Zhang, C
    Naughton, J
    DeWitt, D
    Luo, Q
    Lohman, G
    SIGMOD RECORD, 2001, 30 (02) : 425 - 436
  • [30] Investigating the Performance of Moodle Database Queries in Cloud Environments
    Wiechork, Karina
    Charao, Andrea Schwertner
    PROCEEDINGS OF THE 22ND INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS (ICEIS), VOL 1, 2020, : 269 - 275