CUBIT:并发可更新位图索引(扩展版)
CUBIT: Concurrent Updatable Bitmap Indexing (Extended Version)
AI总结:
本文提出并发可更新位图索引 CUBIT,通过水平按位表示、轻量级快照和无闩锁更新合并实现高效实时更新,在 OLAP 和 HTAP 场景下显著超越现有方案。
摘要:
位图索引因其聚簇特性、高效读取和较小的内存占用而被广泛用于读密集型分析工作负载,但其更新效率历来低下。随着分析型应用与事务型应用日益融合,催生了混合事务/分析处理(HTAP),位图索引支持高效的并发实时更新变得十分必要。本文提出并发可更新位图索引(CUBIT),它提供高效的实时更新,其性能随所用 CPU 核心数扩展,且不干扰查询。我们的设计基于三个原则。第一,采用更新位的水平按位表示,无需锁定整个位向量即可实现高效的原子更新。第二,提出轻量级快照机制,允许查询(包括范围查询)在独立快照上运行,并提供无等待进度保证。第三,以无闩锁方式合并更新,提供强进度保证。我们的评估表明,与最先进的可更新位图索引相比,CUBIT 的吞吐量提高 3 倍至 16 倍,延迟降低 3 倍至 220 倍。CUBIT 的更新友好特性拓宽了位图索引的适用范围。在带有标准批量更新的 OLAP 工作负载上的实验表明,CUBIT 克服了维护停机问题,并在 TPC-H 上以 1.2 倍至 2.7 倍的优势超越 DuckDB。对于具有实时更新的 HTAP 工作负载,CUBIT 相比最先进方法实现了 2 倍至 11 倍的性能提升。
英文摘要:
Bitmap indexes are widely used for read-intensive analytical workloads because they are clustered and offer efficient reads with a small memory footprint. However, they are notoriously inefficient to update. As analytical applications are increasingly fused with transactional applications, leading to the emergence of hybrid transactional/analytical processing (HTAP), it is desirable that bitmap indexes support efficient concurrent real-time updates. In this paper, we propose Concurrent Updatable Bitmap indexing (CUBIT) that offers efficient real-time updates that scale with the number of CPU cores used and do not interfere with queries. Our design relies on three principles. First, we employ a horizontal bitwise representation of updated bits, which enables efficient atomic updates without locking entire bitvectors. Second, we propose a lightweight snapshotting mechanism that allows queries (including range queries) to run on separate snapshots and provides a wait-free progress guarantee. Third, we consolidate updates in a latch-free manner, providing a strong progress guarantee. Our evaluation shows that CUBIT offers 3x - 16x higher throughput and 3x - 220x lower latency than state-of-the-art updatable bitmap indexes. CUBIT's update-friendly nature widens the applicability of bitmap indexing. Experimenting with OLAP workloads with standard, batched updates shows that CUBIT overcomes the maintenance downtime and outperforms DuckDB by 1.2x - 2.7x on TPC-H. For HTAP workloads with real-time updates, CUBIT achieves 2x - 11x performance improvement over the state-of-the-art approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。