[Paper Review] Tsunami: A Learned Multi-dimensional Index for Correlated Data and Skewed Workloads
Tsunami is a learned, in-memory multi-dimensional index that dynamically optimizes for correlated data and skewed workloads using a Grid Tree for query skew adaptation and an Augmented Grid for correlation-aware partitioning. It achieves up to 6× faster query performance and 8× smaller index size than existing learned indexes, and up to 11× faster and 170× smaller than tuned traditional indexes.
Filtering data based on predicates is one of the most fundamental operations for any modern data warehouse. Techniques to accelerate the execution of filter expressions include clustered indexes, specialized sort orders (e.g., Z-order), multi-dimensional indexes, and, for high selectivity queries, secondary indexes. However, these schemes are hard to tune and their performance is inconsistent. Recent work on learned multi-dimensional indexes has introduced the idea of automatically optimizing an index for a particular dataset and workload. However, the performance of that work suffers in the presence of correlated data and skewed query workloads, both of which are common in real applications. In this paper, we introduce Tsunami, which addresses these limitations to achieve up to 6X faster query performance and up to 8X smaller index size than existing learned multi-dimensional indexes, in addition to up to 11X faster query performance and 170X smaller index size than optimally-tuned traditional indexes.
Motivation & Objective
- To address the limitations of existing learned multi-dimensional indexes in handling correlated data and skewed query workloads.
- To design a self-optimizing index that co-optimizes data layout and index structure for a given dataset and workload.
- To reduce index size and improve query throughput in real-world scenarios with data correlation and non-uniform query access patterns.
- To enable robust, adaptive performance across diverse data distributions and access patterns without manual tuning.
Proposed method
- Tsunami uses a Grid Tree—a lightweight decision tree—to partition the data space into non-overlapping regions that minimize query skew by balancing access frequency across regions.
- It employs an Augmented Grid structure that uses functional mappings and conditional cumulative distribution functions (CDFs) to model correlations between dimensions.
- The Grid Tree is trained using query workload statistics to guide partitioning, ensuring frequently accessed regions are efficiently indexed.
- Functional mappings transform correlated dimensions into a lower-dimensional space to reduce index size and improve lookup efficiency.
- Conditional CDFs allow the index to adaptively model the distribution of one dimension given the value of another, improving selectivity estimation.
- The system co-optimizes data storage layout and index structure in a single end-to-end pipeline, eliminating the need for manual tuning.
Experimental results
Research questions
- RQ1How can a learned multi-dimensional index effectively adapt to skewed query workloads without degrading performance?
- RQ2Can correlation between data dimensions be leveraged to reduce index size and improve query performance in a clustered index?
- RQ3How can index structure and data layout be co-optimized to achieve better performance than traditional or existing learned indexes?
- RQ4What data structures enable efficient, adaptive partitioning that maintains uniform cell sizes even under data correlation?
Key findings
- Tsunami achieves up to 6× higher query throughput than existing learned multi-dimensional indexes on correlated and skewed workloads.
- It reduces index size by up to 8× compared to prior learned indexes, significantly improving memory efficiency.
- Tsunami outperforms optimally-tuned traditional indexes by up to 11× in query performance and reduces index size by up to 170×.
- The Grid Tree effectively mitigates query skew by balancing access frequency across regions, improving performance on hot spots.
- The Augmented Grid structure captures complex correlations using functional mappings and conditional CDFs, maintaining high selectivity and low error.
- Tsunami’s end-to-end co-optimization of index and data layout eliminates the need for manual tuning and ensures robust performance across diverse workloads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.