TxnSails: Achieving Serializable Transaction Scheduling with Self-Adaptive Isolation Level Selection

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhuang, Qiyu, Lu, Wei, Liu, Shuang, Chen, Yuxing, Shi, Xinyue, Zhao, Zhanhao, Sun, Yipeng, Pan, Anqun, Du, Xiaoyong
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929695344295936
author Zhuang, Qiyu
Lu, Wei
Liu, Shuang
Chen, Yuxing
Shi, Xinyue
Zhao, Zhanhao
Sun, Yipeng
Pan, Anqun
Du, Xiaoyong
author_facet Zhuang, Qiyu
Lu, Wei
Liu, Shuang
Chen, Yuxing
Shi, Xinyue
Zhao, Zhanhao
Sun, Yipeng
Pan, Anqun
Du, Xiaoyong
contents Achieving the serializable isolation level, regarded as the gold standard for transaction processing, is costly. Recent studies reveal that adjusting specific query patterns within a workload can still achieve serializability even at lower isolation levels. Nevertheless, these studies typically overlook the trade-off between the performance advantages of lower isolation levels and the overhead required to maintain serializability, potentially leading to suboptimal isolation level choices that fail to maximize performance. In this paper, we present TxnSails, a middle-tier solution designed to achieve serializable scheduling with self-adaptive isolation level selection. First, TxnSails incorporates a unified concurrency control algorithm that achieves serializability at lower isolation levels with minimal additional overhead. Second, TxnSails employs a deep learning method to characterize the trade-off between the performance benefits and overhead associated with lower isolation levels, thus predicting the optimal isolation level. Finally, TxnSails implements a cross-isolation validation mechanism to ensure serializability during real-time isolation level transitions. Extensive experiments demonstrate that TxnSails outperforms state-of-the-art solutions by up to 26.7x and PostgreSQL's serializable isolation level by up to 4.8x.
format Preprint
id arxiv_https___arxiv_org_abs_2502_00991
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TxnSails: Achieving Serializable Transaction Scheduling with Self-Adaptive Isolation Level Selection
Zhuang, Qiyu
Lu, Wei
Liu, Shuang
Chen, Yuxing
Shi, Xinyue
Zhao, Zhanhao
Sun, Yipeng
Pan, Anqun
Du, Xiaoyong
Databases
Achieving the serializable isolation level, regarded as the gold standard for transaction processing, is costly. Recent studies reveal that adjusting specific query patterns within a workload can still achieve serializability even at lower isolation levels. Nevertheless, these studies typically overlook the trade-off between the performance advantages of lower isolation levels and the overhead required to maintain serializability, potentially leading to suboptimal isolation level choices that fail to maximize performance. In this paper, we present TxnSails, a middle-tier solution designed to achieve serializable scheduling with self-adaptive isolation level selection. First, TxnSails incorporates a unified concurrency control algorithm that achieves serializability at lower isolation levels with minimal additional overhead. Second, TxnSails employs a deep learning method to characterize the trade-off between the performance benefits and overhead associated with lower isolation levels, thus predicting the optimal isolation level. Finally, TxnSails implements a cross-isolation validation mechanism to ensure serializability during real-time isolation level transitions. Extensive experiments demonstrate that TxnSails outperforms state-of-the-art solutions by up to 26.7x and PostgreSQL's serializable isolation level by up to 4.8x.
title TxnSails: Achieving Serializable Transaction Scheduling with Self-Adaptive Isolation Level Selection
topic Databases
url https://arxiv.org/abs/2502.00991