Where Should the Vectors Live? Locality-Aware Retrieval for RAG on Geo-Distributed SQL
Sharath Chandra Kampili, Abhilash Rao Mesala, Ramakrishna Kommineni
Abstract
Enterprise retrieval-augmented generation (RAG) increasingly runs vector search inside geo-distributed SQL databases, where the corpus is fresh, transactional, and subject to data-residency rules. Where the vectors live relative to their users then decides retrieval latency, freshness, and compliance. We compare five placement strategies on a three-region deployment of a commercially available geo-distributed SQL database with emulated wide-area latency and its native vector index: a centralized table, follower reads, a global table, and home-region partitioning searched globally or locally. The workload is 20,963 SQuAD passages with real questions. Approximate nearest neighbor search amplifies network distance: a remote top-10 query costs 4.2 round trips beyond its local cost, so medians span 6.4 ms to over 700 ms (112x) across strategies that differ only in placement. Local strategies pay elsewhere, in staleness, write latency, or missed answers. We propose LARR, a locality-aware retrieval router that searches the home partition first and escalates to a cross-region fan-out only when the best local distance exceeds a calibrated threshold. With 90% of questions issued from the answer's home region, LARR matches the fan-out's hit@10 (70.7% vs. 70.5%; 95% CI of the difference [-1.4, +1.9] points) at 5.9x lower mean latency. The result holds live on held-out questions, with production-style three-node-per-region replication, and on three real cloud regions (6.1x). With a second, transformer-based embedding model, LARR matches the fan-out at 3.5x lower latency, and its throughput advantage persists under concurrent load. A replicated centroid sketch (LARR-S) sharpens escalation when locality is weaker. We also report a pitfall with partitioned vector indexes.
Create a lesson
Metadata
- Categories
- cs.DB, cs.DC, cs.IR
- Comments
- Accepted for publication in the 2026 International Conference on Artificial Intelligence Centric Systems, Services, and Applications (AISSA). 9 pages, 4 figures, 5 tables. (c) 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses
Related papers
Federated Vector Retrieval across Heterogeneous VectorDBs
Shared title terminologycs.DBMintaek Lim, Sieun Hyeon, Geon Choi et al.
Trigger-Aware-Finechop: Serializable Execution of Chopped Transactions in the Presence of Triggers
Shared title terminologycs.DBZenon Zacouris, Benedikt Jutz, Ralf Reussner et al.
Adapting Graph Construction with Learned Matrices for Cross-Modal Vector Search
Shared title terminologycs.DBZekai Wu, Rong-Hua Li, Junjie Yao et al.
Natural-Language-to-GPML: Dual-Oracle Witness Synthesis, Orthogonal Subspace Merging, and Live Schema-Constrained Decoding for ISO/IEC 39075 Graph Queries
Shared title terminologycs.DBMadhulatha Mandarapu, Sandeep Kunkunuru
Toward Relational-Vector Databases with Schema-Structured Embeddings
Shared title terminologycs.DBAbolfazl Asudeh, Mohsen Dehghankar, Mahdi Erfanian
Shape-Aware Three-Way Merge for RDF Knowledge Graphs: The schema defines the conflict: an implementation and evaluation
Shared title terminologycs.DBSteve Brown