Skip to content

Trigger-Aware-Finechop: Serializable Execution of Chopped Transactions in the Presence of Triggers

Zenon Zacouris, Benedikt Jutz, Ralf Reussner, Maribel Acosta

cs.DB

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