PAT: Towards Transaction Routing with Page Affinity in Shared-Cache Databases
Zhongqin Tan, Haoyuan Zhang, Yanfeng Zhang, Zeshun Peng, Weixing Zhou, Jinyu Zhang, Yang Ren, Guoliang Li, Ge Yu
Abstract
Shared-cache architectures decouple compute from storage and employ local caches in compute nodes to reduce the latency of accessing shared storage, achieving high availability and elasticity. However, this design suffers from local cache misses and cache coherence overhead. Transaction routing has been widely used to mitigate these issues by routing transactions that access the same data to the same nodes, improving cache locality. Most existing routing approaches rely on row affinity, i.e., routing transactions that access the same set of rows to the same nodes. Since shared-cache databases typically maintain distributed cache coherence at the page level, this mismatch can cause redundant coherence traffic and degrade performance. In this paper, we present PAT, a shared-cache database system with page affinity-based routing, which routes transactions that access frequently co-accessed pages to the same compute node, reducing local cache misses and cache coherence overhead. Since SQL does not reveal which pages will be accessed before execution, PAT abstracts pages using key ranges to enable page affinity-based routing. This is based on the ordering property of widely used clustered indexes. Moreover, page updates may cause key ranges to become misaligned with pages, leading to significant cache coherence overhead. To address this issue, we introduce the route-aware page reorganization mechanism. Experiments show that PAT achieves higher throughput than state-of-the-art approaches under TPC-C and YCSB.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on8
- Learning a Partitioning Advisor for Cloud DatabasesBenjamin Hilprecht, Carsten Binnig, Uwe RöhmSIGMOD 2020 · 64 citations
- ScaleStore: A Fast and Cost-Efficient Storage Engine using DRAM, NVMe, and RDMATobias Ziegler, Carsten Binnig, Viktor LeisSIGMOD 2022 · 51 citations
- Incrementalization of Graph Partitioning AlgorithmsWenfei Fan, Muyang Liu, Chao Tian, Ruiqi Xu et al.VLDB 2020 · 47 citations
- Chiller: Contention-centric Transaction Execution and Data Partitioning for Modern NetworksErfan Zamanian, Julian Shun, Carsten Binnig, Tim KraskaSIGMOD 2020 · 29 citations
- Zeus: locality-aware distributed transactionsAntonios Katsarakis, Yijun Ma, Zhaowei Tan, Andrew Bainbridge et al.EuroSys 2021 · 20 citations
Related papers
- Don't Look Back, Look into the Future: Prescient Data Partitioning and Migration for Deterministic Database SystemsYu-Shan Lin, Ching Tsai, Tz-Yu Lin, Yun-Sheng Chang et al.SIGMOD 2021 · 17 citations
- Fast Query Decomposition for Batch Shortest Path Processing in Road NetworksLei Li, Mengxuan Zhang, Wen Hua, Xiaofang ZhouICDE 2020 · 61 citations
- PolyBase: Adapting to Data Affinity Changes in Geo-Replicated Database via Row-Level Paxos-Group Affiliation Re-AssignmentChaoyi Ruan, Yingqiang Zhang, Juncheng Zhang, Cheng Li et al.VLDB 2025
- Translytical Processing via DB-OS Co-designed Buffer: Cross-Engine Isolation and Tunable Update Visibility for HTAPDongkwang Kim, Keonwook Park, Cheolmin Choi, Hyungsoo JungSIGMOD 2026
- Competitive Consistent Caching for TransactionsShuai An, Yang Cao, Wenyue ZhaoICDE 2022 · 1 citation
