HDDB: Efficient In-Storage SQL Database Search Using Hyperdimensional Computing on Ferroelectric NAND Flash

Quanling Zhao, Yanru Chen, Runyang Tian, Sumukh Pinge, Weihong Xu, Augusto Vega, Steven Holmes, Saransh Gupta, Tajana RosingarXiv 2025 · DOI

Abstract

Modern big data analytics is increasingly constrained by the "Data Movement Wall," where the energy and time required to move data from storage to processing units outweigh the computation itself. HDDB addresses this by offloading SQL "scans"—the most data-intensive part of a query—directly into storage. By leveraging the noise-resilient properties of Hyperdimensional Computing (HDC) and the high density of Ferroelectric NAND (FeNAND) flash, HDDB achieves up to 80.6× faster performance and 12,636× better energy efficiency than traditional CPU/GPU database engines, even in the presence of significant hardware noise.

Introduction

In typical SQL query execution, massive amounts of data are moved from storage to the CPU or GPU simply to perform basic filtering (e.g., WHERE price > 100). Most of this data is eventually discarded, leading to massive inefficiencies. While In-Storage Processing (ISP) aims to mitigate this, emerging high-density memories like FeNAND are prone to high bit-error rates, typically requiring power-hungry Error Correction Codes (ECC).

HDDB proposes a paradigm shift: instead of fighting noise with ECC, it uses HDC—a computing framework that is inherently robust to bit errors. This hardware-software co-design allows for efficient, parallel search operations directly within the flash memory strings.

System Architecture and Methodology

Overview of the HDDB system architecture, showing the transition from offline preparation to in-storage acceleration.

The HDDB workflow consists of three primary stages: offline preparation, encoded storage, and ISP acceleration. During preparation, raw data is converted into high-dimensional hypervectors (HVs). These HVs are stored in an encoded matrix within the FeNAND flash. When a query is issued, the system performs Dual Boundary Approximate Matching (DBAM) directly on the flash wordlines to identify matching rows without moving the raw data to the host.

Hyperdimensional Encoding

To represent database records, HDDB employs two distinct encoding strategies:

  1. Strings: Words are mapped to 100,000-bit hypervectors. The holographic nature of HDC ensures that even if 10% of the bits are corrupted, the original meaning remains identifiable.
  2. Numbers: Traditional HDC struggles with numerical ranges. HDDB introduces a recursive multi-resolution encoding that preserves numerical order, allowing for complex range comparisons (e.g., "greater than" or "less than") using a hierarchical binning approach.
HDC encoding schemes for (a) categorical strings and (b) recursive multi-resolution numerical values.

In-Situ Acceleration

HDDB exploits the physical structure of 3D NAND strings to perform parallel "AND" operations. By manipulating wordline voltages, the system implements DBAM, which can search across thousands of cells simultaneously. This custom ISP architecture uses an H-tree network to connect storage tiles with Near-Storage Processors (NSPs) for final decoding and simple aggregations like SUM or AVG.

Experimental Evaluation

The system was evaluated using the industry-standard TPC-DS benchmark across various scale factors. Compared to state-of-the-art engines like PostgreSQL, DuckDB, and HeavyDB (GPU), HDDB demonstrated transformative improvements:

  • Performance: HDDB is up to 80.6× faster than PostgreSQL and 19.8× faster than GPU-accelerated HeavyDB for filter-heavy workloads.
  • Energy Efficiency: The system achieves up to 12,636× lower energy consumption than traditional CPU-based processing.
  • Robustness: HDDB maintains 100% predicate accuracy at noise levels (0.15 bit error rate) where traditional systems would fail entirely without heavy ECC.
  • Practicality: The custom NSP logic only adds a 1.8% area overhead to the storage chip, making it a viable candidate for future manufacturing.

Conclusion and Future Work

HDDB proves that noise-resilient computing paradigms like HDC can unlock the potential of emerging, high-density, but "noisy" memory technologies for big data analytics. While currently optimized for scans and simple aggregations, future work will focus on extending this architecture to support complex SQL operations like multi-way joins and nested subqueries, further reducing the reliance on host-side processing.

Summary updated

BibTeX
@misc{zhao2025hddb,
  author = {Quanling Zhao and Yanru Chen and Runyang Tian and Sumukh Pinge and Weihong Xu and Augusto Vega and Steven Holmes and Saransh Gupta and Tajana Rosing},
  title = {{HDDB: Efficient In-Storage SQL Database Search Using Hyperdimensional Computing on Ferroelectric NAND Flash}},
  year = {2025},
  eprint = {2511.18234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.18234},
}
Figure