Proceedings of the 2022 International Conference on Management of Data · 2022 · 20 citations · 41 references
ComputingComputer ScienceComputer SystemsData ManagementDatabasesFault ToleranceConcurrency ControlDatabase AdministrationDatabase ManagementDistributed TransactionsSynchronization PrimitivesTransaction ManagementDatabase LockingDatabase TransactionsLockingProgram CorrectnessTransaction ProcessingTransactions
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. Based on the findings, we discuss the implications of ad hoc transactions to the database research community.
41
The notions of consistency and predicate locks in a database system
Kapali P. Eswaran, Jim Gray, Raymond A. Lorie et al. · Communications of the ACM · 1976 · 2K citations · Full text
C. Mohan, Don Haderle, Bruce G. Lindsay et al. · ACM Transactions on Database Systems · 1992 · 1K citations · Full text
A critique of ANSI SQL isolation levels
Hal Berenson, Phil Bernstein, Jim Gray et al. · 1995 · 865 citations · Full text
Data model issues for object-oriented applications
Jay Banerjee, Hong‐Tai Chou, Jorge F. Garza et al. · ACM Transactions on Information Systems · 1987 · 579 citations · Full text