Skip to main content
QUICK REVIEW

[Paper Review] Main Memory Adaptive Indexing for Multi-core Systems

Víctor Álvarez, Felix Schuhknecht|arXiv (Cornell University)|Apr 8, 2014
Data Management and AlgorithmsComputer Science17 references15 citations
TL;DR

This paper proposes three novel parallel adaptive indexing algorithms—Parallel-Chunked Standard Cracking (P-CSC), Parallel-Chunked Coarse-Granular Index (P-CCGI), and Parallel-Range-Partitioned Sorting (P-CRS)—alongside a NUMA-aware hybrid sorting method, demonstrating that sorting-based approaches can outperform adaptive indexing in multi-core environments. The key finding is that P-CCGI achieves the lowest accumulated query response time, while P-CRS and P-RPRS show superior scalability and performance, especially beyond ~500 queries, challenging the dominance of adaptive indexing in highly parallel workloads.

ABSTRACT

Adaptive indexing is a concept that considers index creation in databases as a by-product of query processing; as opposed to traditional full index creation where the indexing effort is performed up front before answering any queries. Adaptive indexing has received a considerable amount of attention, and several algorithms have been proposed over the past few years; including a recent experimental study comparing a large number of existing methods. Until now, however, most adaptive indexing algorithms have been designed single-threaded, yet with multi-core systems already well established, the idea of designing parallel algorithms for adaptive indexing is very natural. In this regard only one parallel algorithm for adaptive indexing has recently appeared in the literature: The parallel version of standard cracking. In this paper we describe three alternative parallel algorithms for adaptive indexing, including a second variant of a parallel standard cracking algorithm. Additionally, we describe a hybrid parallel sorting algorithm, and a NUMA-aware method based on sorting. We then thoroughly compare all these algorithms experimentally; along a variant of a recently published parallel version of radix sort. Parallel sorting algorithms serve as a realistic baseline for multi-threaded adaptive indexing techniques. In total we experimentally compare seven parallel algorithms. Additionally, we extensively profile all considered algorithms. The initial set of experiments considered in this paper indicates that our parallel algorithms significantly improve over previously known ones. Our results suggest that, although adaptive indexing algorithms are a good design choice in single-threaded environments, the rules change considerably in the parallel case. That is, in future highly-parallel environments, sorting algorithms could be serious alternatives to adaptive indexing.

Motivation & Objective

  • To address the performance gap in multi-core database systems by designing efficient parallel adaptive indexing algorithms that scale with increasing core counts.
  • To evaluate whether sorting-based methods can serve as viable, and potentially superior, alternatives to adaptive indexing in parallel environments.
  • To identify the most efficient parallel algorithm for adaptive indexing by comparing multiple variants, including NUMA-aware and hybrid sorting techniques.
  • To analyze system-level bottlenecks such as cache misses, NUMA effects, and locking overheads across all algorithms to guide architectural optimization.
  • To determine the tipping point at which sorting-based methods overtake adaptive indexing in terms of total query response time under varying workloads.

Proposed method

  • Proposes Parallel-Chunked Standard Cracking (P-CSC), a thread-level parallelization of standard cracking that divides data into chunks for concurrent processing.
  • Introduces Parallel-Chunked Coarse-Granular Index (P-CCGI), which applies range partitioning before indexing to improve convergence and reduce initial response time.
  • Develops Parallel-Range-Partitioned Radix Sort (P-RPRS), a space-efficient, scalable sorting variant that serves as a high-performance baseline for adaptive indexing.
  • Designs a hybrid parallel sorting algorithm (P-CRS) that combines adaptive indexing principles with sorting, enabling fast query processing after initial sort.
  • Employs a NUMA-aware sorting strategy that partitions data across memory nodes to reduce latency and improve cache locality in non-uniform memory architectures.
  • Uses extensive profiling to measure bandwidth utilization, cache misses, NUMA effects, and locking overheads across all algorithms to identify performance bottlenecks.

Experimental results

Research questions

  • RQ1How do parallel adaptive indexing algorithms compare in terms of initial response time and accumulated query time under increasing thread counts?
  • RQ2Can sorting-based approaches outperform adaptive indexing in multi-core systems, especially as the number of queries increases?
  • RQ3What is the performance impact of NUMA-aware data partitioning in parallel sorting and indexing algorithms?
  • RQ4How do system-level factors such as cache misses, memory bandwidth, and locking overheads affect the scalability of parallel adaptive indexing?
  • RQ5At what point does the total query response time of sorting-based methods overtake that of adaptive indexing in a multi-core setting?

Key findings

  • Parallel-Chunked Coarse-Granular Index (P-CCGI) achieves the lowest accumulated query response time and outperforms all other algorithms after approximately 10 queries.
  • Parallel-Chunked Standard Cracking (P-CSC) has the fastest initial response time but is outperformed by P-CCGI after ~10 queries due to its slower convergence.
  • Parallel-Range-Partitioned Radix Sort (P-RPRS) scales nearly linearly with the number of threads and requires significantly less extra space than standard parallel radix sort.
  • The hybrid sorting-based algorithm P-CRS achieves initial response times comparable to full sorting and rapidly becomes one of the fastest methods as query count increases.
  • The tipping point between the fastest adaptive indexing method (P-CSC) and the fastest sorting-based method (P-CRS) shifts to around 500 queries, suggesting sorting may dominate in high-concurrency scenarios.
  • Profiling reveals that P-RPRS and P-CRS are CPU-bound during sorting phases, indicating that further thread scaling could move the tipping point even earlier.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.