Ad Hoc Transactions: What They Are and Why We Should Care

被引:10
作者
Tang, Chuzhe [1 ,2 ]
Wang, Zhaoguo [1 ,2 ]
Zhang, Xiaodong [1 ,2 ]
Yu, Qianmian [1 ,2 ]
Zang, Binyu [1 ,2 ]
Guan, Haibing [3 ]
Chen, Haibo [1 ,2 ]
机构
[1] Shanghai Jiao Tong Univ, Inst Parallel & Distributed Syst, Shanghai, Peoples R China
[2] Minist Educ, Engn Res Ctr Domain Specif Operating Syst, Beijing, Peoples R China
[3] Shanghai Jiao Tong Univ, Shanghai Key Lab Scalable Comp & Syst, Shanghai, Peoples R China
基金
中国国家自然科学基金;
关键词
D O I
10.1145/3514221.3526120
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Many transactions in web applications are constructed ad hoc in the application code. For example, developers might explicitly use locking primitives or validation procedures to coordinate critical code fragments. We refer to database operations coordinated by application code as ad hoc transactions. Until now, little is known about them. This paper presents the first comprehensive study on ad hoc transactions. By studying 91 ad hoc transactions among 8 popular open-source web applications, we find that (i) every studied application uses ad hoc transactions (up to 16 per application), 71 of which play critical roles; (ii) compared with database transactions, concurrency control of ad hoc transactions is much more flexible; (iii) ad hoc transactions are error-prone-53 of them have correctness issues, and 33 of them are confirmed by developers; and (iv) ad hoc transactions have the potential to improve performance in contentious workloads by utilizing application semantics such as access patterns. Finally, implications of ad hoc transactions to the database research community are discussed.
引用
收藏
页码:7 / 15
页数:9
相关论文
共 17 条
  • [1] Feral Concurrency Control: An Empirical Investigation of Modern Application Integrity
    Bailis, Peter
    Fekete, Alan
    Franklin, Michael J.
    Ghodsi, Ali
    Hellerstein, Joseph M.
    Stoica, Ion
    [J]. SIGMOD'15: PROCEEDINGS OF THE 2015 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2015, : 1327 - 1342
  • [2] Coordination Avoidance in Database Systems
    Bailis, Peter
    Fekete, Alan
    Franklin, Michael J.
    Ghodsi, Ali
    Hellerstein, Joseph M.
    Stoica, Ion
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2014, 8 (03): : 185 - 196
  • [3] Transaction Repair for Multi-Version Concurrency Control
    Dashti, Mohammad
    John, Sachin Basil
    Shaikhha, Amir
    Koch, Christoph
    [J]. SIGMOD'17: PROCEEDINGS OF THE 2017 ACM INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2017, : 235 - 250
  • [4] Optimistic Transaction Processing in Deterministic Database
    Dong, Zhi-Yuan
    Tang, Chu-Zhe
    Wang, Jia-Chen
    Wang, Zhao-Guo
    Chen, Hai-Bo
    Zang, Bin-Yu
    [J]. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2020, 35 (02) : 382 - 394
  • [5] NOTIONS OF CONSISTENCY AND PREDICATE LOCKS IN A DATABASE SYSTEM
    ESWARAN, KP
    GRAY, JN
    LORIE, RA
    TRAIGER, IL
    [J]. COMMUNICATIONS OF THE ACM, 1976, 19 (11) : 624 - 633
  • [6] Garcia-Molina H., 1987, SIGMOD Record, V16, P249, DOI 10.1145/38714.38742
  • [7] Jordan J. R, SIGMOD 81
  • [8] ON OPTIMISTIC METHODS FOR CONCURRENCY-CONTROL
    KUNG, HT
    ROBINSON, JT
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 1981, 6 (02): : 213 - 226
  • [9] Li C., USENIX ATC 14
  • [10] Li C., OSDI 12