Trigger-Aware-Finechop: Serializable Execution of Chopped Transactions in the Presence of Triggers
Zenon Zacouris, Benedikt Jutz, Ralf Reussner, Maribel Acosta
Abstract
Database systems use a variety of triggers to satisfy integrity constraints and keep derived values up to date. These triggers induce additional work per transaction and so also increase contention in the system. The natural solution here would be transaction chopping. However, in the particular case of triggers, chopping may cause non-serializable executions. The reason is that the algorithms of classic transaction chopping fail to consider the conflicts induced by triggers. In this paper, we introduce Trigger-Aware-Finechop, an extension of the FineChop algorithm to allow considering the triggers of a transaction. We show formally in the proofs of the transaction chopping that final choppings produced by Trigger-Aware-Finechop are ensured to be serializable executions. We provide a complexity analysis of our Trigger-Aware-Finechop algorithm, and we evaluate our approach using the Payment transaction from the TPC-C benchmark. The results show that for 8 clients per warehouse, the chopped transaction performs 4 times better than the unchopped variant. Although the improvement is highly dependent on the lock hold time of the data item with the highest contention, we are able to define a deterministic rule for when chopping provides benefits.
Create a lesson
Metadata
- Comments
- This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible
Related papers
Where Should the Vectors Live? Locality-Aware Retrieval for RAG on Geo-Distributed SQL
Shared title terminologycs.DBSharath Chandra Kampili, Abhilash Rao Mesala, Ramakrishna Kommineni
Shape-Aware Three-Way Merge for RDF Knowledge Graphs: The schema defines the conflict: an implementation and evaluation
Shared title terminologycs.DBSteve Brown
Efficient Semantic ORDER BY via Transitivity-Aware LLM Batch Sorting
Shared title terminologycs.DBAkinkunle Akintayo Akinola, Arijit Khan
Mind the Trap As LLMs Guess the Data Model: Grain-Aware Guards Against Fan-out in Text-to-SQL and Its Benchmarks
Shared title terminologycs.DBAhmed M. Mahran
AskWise: Execution-Guided Clarification of Intent and Data in Text-to-SQL
Shared title terminologycs.DBYuru Liang, Guangyinan Mei, Miles Fan
Logical Design Tuning via Workload-aware E/R-to-Relational Mapping
Shared title terminologycs.DBHasara Kalumin, Amol Deshpande