arXiv:2610.09414cs.DBOct 2026

Manuscript Offprint

arXiv:2610.09414

Indexing Designs and Adaptive Data Distribution Optimization for In-Memory Databases on Hybrid DDR--CXL Memory

Huijie Cao, Shun Yang, Yinan Zhang, Huiqi Hu, Xuan Zhou, Weining Qian

HUIJIE CAO, East China Normal University, China

SHUN YANG, East China Normal University, China

YINAN ZHANG, East China Normal University, China

HUIQI HU, East China Normal University, China

XUAN ZHOU, East China Normal University, China

WEINING QIAN, East China Normal University, China

CXL memory offers a new way for in-memory databases to expand the available memory capacity of a single node, but has higher access latency and lower bandwidth than local DDR memory. To exploit both the capacity advantage of CXL memory and the performance advantage of DDR memory, databases must jointly consider indexing design and data distribution. Different indexing designs lead to different data access and migration paths and constrain how indexes and tuples are distributed across the two memory tiers. These differences result in different trade-offs in runtime performance, DDR memory efficiency, and system integration complexity, making the actual impact of each indexing design on database performance difficult to determine directly. Indexes and tuples may also have different access characteristics. Placing them in the same memory tier may reduce DDR memory efficiency, whereas managing them separately increases access tracking and distribution decision overheads.

To address these issues, we propose five indexing designs for hybrid DDR-CXL databases based on two approaches: treating the two memory tiers as a unified data space or managing them separately. We systematically analyze the differences and trade-offs among these designs and their underlying causes. We further design an adaptive data distribution optimization method for single-index designs in which the database explicitly manages data distribution. The method manages index objects and tuples separately and uses hierarchical hotness tracking and an index object residency policy to reduce metadata management overhead. It extends benefit-aware admission and randomized eviction to determine and adjust the distribution of the two object types according to their respective expected benefits and memory footprints. We implemented these designs in a hybrid DDR-CXL database prototype and evaluated them using YCSB. Experimental results show that the single-index design with direct addressing achieves the best performance under most workloads and system configurations. The dual-index design provides performance advantages mainly when DDR memory capacity is limited or accesses are highly concentrated, and has relatively low system integration complexity. The proposed adaptive data distribution optimization method improves DDR memory efficiency and system performance, enabling single-index designs to achieve up to 1.59×1.59\times the throughput of their corresponding implementations with non-separated management.

CCS Concepts: • Information systems → Database management system engines; Key-value stores.

Additional Key Words and Phrases: In-memory databases, CXL memory, indexing design, data distribution, memory expansion

Authors' Contact Information: Huijie Cao, East China Normal University, Shanghai, China, hjcao@stu.ecnu.edu.cn; Shun Yang, East China Normal University, Shanghai, China, syang@stu.ecnu.edu.cn; Yinan Zhang, East China Normal University, Shanghai, China, ynzhang@stu.ecnu.edu.cn; Huiqi Hu, East China Normal University, Shanghai, China, hqhu@dase.ecnu.edu.cn; Xuan Zhou, East China Normal University, Shanghai, China, xz@dase.ecnu.edu.cn; Weining Qian, East China Normal University, Shanghai, China, wnqian@dase.ecnu.edu.cn.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org. © 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM. Manuscript submitted to ACM

H. Cao et al.

ACM Reference Format:

Huijie Cao, Shun Yang, Yinan Zhang, Huiqi Hu, Xuan Zhou, and Weining Qian. 2026. Indexing Designs and Adaptive Data Distribution Optimization for In-Memory Databases on Hybrid DDR-CXL Memory. 1, 1 (October 2026), 25 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

In-memory databases store data in main memory to avoid storage I/O overhead and provide low latency and high throughput [6, 7, 21]. However, as the amount of data managed by applications continues to grow, local memory capacity becomes increasingly insufficient to accommodate the entire database. Expanding local DDR memory is constrained by the number of DIMM slots and memory channels [23, 34], while high-density memory modules remain costly. Compute Express Link (CXL) provides an alternative for expanding memory capacity within a single node. Memory connected through CXL.mem can be incorporated into the host address space and accessed by the CPU using ordinary load and store instructions [32]. This enables databases to use local DDR memory and CXL memory together to expand their available memory capacity.

Nevertheless, CXL memory has higher access latency and lower bandwidth than local DDR memory [34, 35, 40]. Request execution typically involves an index lookup followed by tuple access. Different indexing designs determine which indexes are used for lookup, which memory tiers are accessed, and how tuple addresses are resolved, resulting in different data access paths [18, 52]. During data distribution adjustment, the indexing design also affects which objects must be migrated and which references must be maintained, resulting in different data migration paths [48, 50]. These differences affect request execution overhead and data migration overhead, respectively, and hence runtime performance. The indexing design further constrains whether an index and the tuples it manages must reside in the same memory tier and which objects can be stored in DDR memory. These constraints, however, do not determine the actual distribution of indexes and tuples. The database must still determine their distribution according to their access characteristics and adjust it as those characteristics change [19, 33]. Maintaining high performance while expanding memory capacity therefore requires considering both indexing design and data distribution.

First, an indexing design affects multiple processes, including request execution and data distribution adjustment. Different designs involve complex trade-offs among the runtime overheads of these processes: reducing one overhead may increase others. Overall performance depends on the combined effect of these overheads, making the actual performance impact of an indexing design difficult to determine directly. Moreover, data access characteristics, memory capacity, and memory access performance change the extent to which each overhead affects overall performance. As a result, performance differences between indexing designs vary with these conditions. Understanding these overheads and their combined impact under different workload and memory conditions is therefore essential to indexing design.

Second, the performance of an indexing design also depends on how indexes and tuples are distributed across the two memory tiers. Indexes and tuples may have different access characteristics, so placing them together in the same memory tier may reduce DDR memory efficiency. Separate management, however, increases access tracking and distribution decision overheads. It also requires distribution decisions to account for potential differences in memory footprint, access cost, and cross-tier migration cost between indexes and tuples. These differences make it difficult to determine their priority for DDR memory allocation based on access frequency alone.

To address these challenges, we propose five indexing designs and an adaptive data distribution optimization method for hybrid DDR-CXL in-memory databases. The five designs either treat DDR and CXL memory as a unified data space or manage the two memory tiers separately. A systematic analysis characterizes their differences and trade-offs in Manuscript submitted to ACM runtime performance, DDR memory efficiency, and system integration complexity. It further examines the underlying causes.

We further design an adaptive data distribution optimization method for single-index designs in which the database explicitly manages data distribution. The method manages index objects separately from tuples to adapt to their different access characteristics. To control the additional metadata management overhead, it employs hierarchical hotness tracking and an index object residency policy to limit the set of objects requiring continuous tracking and distribution adjustments. It also extends the benefit-aware admission and randomized eviction mechanisms [10] to determine and adjust the distribution of index objects and tuples according to their respective expected benefits and memory footprints.

We implemented the indexing designs and the distribution optimization method in a hybrid DDR-CXL database prototype and evaluated them using YCSB [11]. With the proposed distribution optimization, the single-index design with direct addressing achieves the highest throughput in most evaluated workloads and system configurations. The dual-index design provides higher throughput in some configurations with limited DDR capacity or high access skew, and has low system integration complexity. For the single-index designs with explicit distribution management, the optimization improves DDR memory efficiency and achieves up to 1.59×1.59\times the throughput of the corresponding implementations using non-separated management, which keeps each index object and its associated tuple in the same memory tier.

The main contributions are as follows:

  • Five indexing designs for hybrid DDR-CXL memory databases, together with a systematic analysis of their differences, trade-offs, and underlying causes. (Section 3)

  • An adaptive data distribution optimization method that manages index objects and tuples separately while controlling metadata management overhead. (Section 4)

  • A comprehensive experimental evaluation of the indexing designs and distribution optimization under different workloads, memory capacities, and CXL memory access latencies. (Section 5)

Section 2 discusses related work. Section 3 presents the indexing designs and their analysis, followed by adaptive data distribution optimization in Section 4. Section 5 reports the experimental evaluation, and Section 6 concludes the paper.

References (1)