Details
-
Epic
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
None
-
Hybrid Memory/Disk Vector Index for Large-Scale Workloads
Description
Objective
Develop and integrate a new vector indexing approach in MariaDB designed specifically to handle large-scale similarity search by utilizing a combination of in-memory and disk storage.
Context & Problem
Current vector indexing solutions are often strictly bound by available RAM. As users scale their AI and machine learning applications, their embedding datasets frequently exceed these memory limits. To support enterprise-scale vector workloads cost-effectively, MariaDB requires an indexing mechanism that scales beyond RAM capacity without severely degrading query latency.
Proposed Solution
Build a hybrid storage architecture for vector indexes. For example, this approach could keep the most critical, frequently accessed routing data (such as upper-level graph nodes or cluster centroids) in memory to maintain fast traversal times, while persisting the bulk of the raw vector data and lower-level index structures on disk.
High-Level Scope
- Core Architecture: Design and implement a vector index (e.g., a disk-optimized ANN algorithm) that natively supports splitting data across RAM and disk.
- I/O Optimization: Implement caching and minimize disk reads during approximate nearest neighbor searches to ensure performance remains stable as the dataset grows.
- Configuration & Tuning: Expose system variables that allow administrators to define memory limits, disk allocation, and caching behaviors for the vector index.
- Benchmarking & Validation: Test and document query latency, throughput, and index build times on datasets that are significantly larger than available memory (e.g., 100M+ to 1B+ vectors).