Throughput, or Queries Per Second (QPS), is the maximum number of search operations a vector database system can process per second while maintaining acceptable latency and accuracy. It represents the system's overall capacity for handling concurrent similarity searches, such as k-NN or filtered search requests. High throughput is critical for applications requiring real-time retrieval from large-scale embedding datasets, directly impacting user experience and system scalability. It is a key metric alongside P99 latency for defining service-level objectives (SLOs).
Glossary
Throughput (QPS)

What is Throughput (QPS)?
Throughput, measured in Queries Per Second (QPS), is a fundamental performance metric for vector databases.
Throughput is determined by hardware resources (CPU, memory, I/O), vector indexing algorithm efficiency, and system architecture choices like sharding and load balancing. Optimizations such as batch querying, efficient distance metric computation (e.g., cosine similarity), and query planning that utilizes dynamic pruning can significantly increase QPS. Engineers must balance throughput against recall and latency, as aggressive optimizations for speed can compromise result quality. Monitoring QPS under load is essential for vector database operations and capacity planning.
Key Characteristics of Throughput
Throughput, measured in Queries Per Second (QPS), defines a system's capacity for concurrent search operations. Its optimization involves balancing multiple, often competing, system parameters.
Inverse Relationship with Latency
Throughput and latency exhibit a fundamental trade-off. As the offered load (queries per second) increases towards a system's maximum throughput, queuing delays accumulate, causing average and tail latency (e.g., P99 Latency) to rise non-linearly. The goal is to operate at a throughput level that keeps latency within Service Level Objectives (SLOs). Pushing beyond the saturation point leads to thrashing and exponential latency growth.
Concurrency and Parallelism
High throughput is achieved by processing multiple queries simultaneously. This relies on:
- Concurrency: The system's ability to handle multiple in-flight queries through techniques like asynchronous I/O and non-blocking operations.
- Parallelism: The physical execution of multiple queries at the same instant, utilizing multi-core CPUs and SIMD (Single Instruction, Multiple Data) instructions for batched distance computations. Effective load balancing across threads and nodes is critical to prevent bottlenecks and maximize parallel resource utilization.
Resource Saturation Points
Maximum sustainable throughput is determined by the first resource to reach 100% utilization, known as the bottleneck. Common saturation points in vector databases include:
- CPU Cores: Exhausted by distance calculations and graph traversal logic.
- Memory Bandwidth: Overwhelmed by streaming large volumes of vector data from RAM.
- Network I/O: Saturated in distributed clusters during query fan-out and result aggregation.
- Disk I/O: Becomes a bottleneck for persistent indexes that are not fully memory-resident. Profiling identifies the limiting resource for targeted optimization.
Impact of Index Parameters
The choice of Approximate Nearest Neighbor (ANN) index and its parameters directly dictates the throughput-latency frontier. For example:
- HNSW: Higher M (maximum connections) and efConstruction parameters create a more accurate, denser graph, increasing per-query latency but potentially allowing higher throughput at a given recall target due to more efficient search paths.
- IVF indexes: A larger nlist (number of Voronoi cells) reduces the number of vectors per cell, speeding up individual queries (lower latency) but requiring more distance computations to centroids, which can impact throughput if not optimized via Inverted File Index pruning.
Query Batching
Processing multiple queries in a single batch is a primary technique for maximizing throughput. It amortizes system overheads and enables hardware-efficient operations:
- Batch Size: The number of queries grouped together. Larger batches increase throughput but also increase the latency for the first query in the batch.
- Hardware Utilization: Enables full utilization of SIMD units on CPUs and tensor cores on GPUs by performing many distance calculations in parallel.
- System Overhead: Reduces per-query costs for network serialization, scheduling, and index access. Continuous batching, where batches are dynamically assembled from a queue, is used in high-throughput serving systems.
Measurement and Load Testing
Throughput is not a single number but a curve dependent on load and latency constraints. It is characterized through:
- Load Testing: Systematically increasing the request rate until latency SLOs are violated or resource saturation occurs.
- Percentile Analysis: Throughput must be evaluated alongside P50, P95, and P99 Latency metrics. A system may sustain 10k QPS at P50 latency <10ms but only 5k QPS at P99 latency <50ms.
- Steady-State vs. Burst: Sustainable throughput is the rate a system can maintain indefinitely, distinct from short-term burst capacity which may rely on transient resource buffers.
The Throughput-Latency Trade-Off
A fundamental engineering constraint in vector database performance where increasing the rate of processed queries (throughput) typically increases the time to complete each query (latency).
Throughput, measured in Queries Per Second (QPS), is the maximum number of search operations a system can handle per unit time. Latency is the time taken to complete a single query. In vector databases, these metrics are intrinsically linked: pushing a system to its maximum QPS often increases average and P99 latency as resource contention (CPU, I/O, network) grows. System architects must define an SLO (Service Level Objective) that balances acceptable response times with required processing capacity.
Optimizing this trade-off involves tuning index parameters (like HNSW's ef or IVF's nprobe), managing system resources, and implementing techniques like query concurrency limits and load shedding. The goal is to achieve the highest sustainable throughput while keeping latency—especially tail latency—within strict bounds for real-time applications like semantic search and retrieval-augmented generation (RAG).
Factors Influencing Throughput
A comparison of key architectural decisions and their impact on the maximum sustainable Queries Per Second (QPS) for a vector database system.
| Factor | High Throughput Configuration | Balanced Configuration | High Precision Configuration |
|---|---|---|---|
Index Algorithm | IVF (Inverted File Index) | HNSW (Hierarchical Navigable Small World) | Exhaustive (Flat) Search |
Quantization / Compression | Product Quantization (PQ) | Scalar Quantization (SQ) | No Compression (Full Precision) |
Search Parameter (e.g., | Low (e.g., | Moderate (e.g., | High (e.g., |
Query Concurrency Model | Asynchronous I/O with Continuous Batching | Thread Pool with Connection Pooling | Synchronous Request-Response |
Data & Index Placement | Fully In-Memory (RAM) | Hybrid (Hot in RAM, Cold on SSD) | On-Disk / Persisted Storage |
Sharding Strategy | Vector Dimension-Based Sharding | Metadata-Based Sharding | Single Shard (No Distribution) |
Distance Metric Computation | Hardware-Accelerated (e.g., SIMD, GPU) | Optimized CPU Libraries | Native Floating-Point |
Filtered Search Strategy | Post-Filtering | Pre- & Post-Filtering Hybrid | Pre-Filtering |
Frequently Asked Questions
Throughput, measured in Queries Per Second (QPS), is a fundamental metric for vector database performance, defining the system's capacity to handle concurrent similarity searches. This FAQ addresses common technical questions about optimizing, measuring, and scaling QPS in production environments.
Throughput, measured in Queries Per Second (QPS), is the maximum number of vector similarity search operations a database system can process per second while maintaining acceptable query latency. It quantifies the system's capacity for concurrent request handling under a defined load. High QPS is critical for applications like real-time recommendation engines, semantic search interfaces, and retrieval-augmented generation (RAG) systems that must serve many users simultaneously. Throughput is not an isolated metric; it exists in a direct trade-off with latency and recall. Increasing QPS often requires optimizations (e.g., reducing index search depth) that may increase latency or reduce result accuracy. System throughput is ultimately constrained by hardware resources—CPU cores, memory bandwidth, and network I/O—and the efficiency of the underlying approximate nearest neighbor (ANN) index.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Throughput (QPS) is a critical capacity metric, but it must be evaluated alongside other key performance indicators. These related terms define the trade-offs and constraints within a vector database system.
Query Latency
Query Latency is the elapsed time between submitting a search request to a vector database and receiving the complete response. It is the primary user-facing metric for responsiveness.
- Direct Trade-off with Throughput: Systems are typically tuned for either low latency (prioritizing individual request speed) or high throughput (prioritizing total request volume). Increasing load often increases latency.
- Measurement Points: Includes network transmission, query planning, index traversal, distance computations, and result serialization.
- Service-Level Objectives (SLOs): Defined using percentiles (e.g., P95, P99 Latency) to guarantee performance for most queries.
P99 Latency
P99 Latency is the 99th percentile of query latency measurements, representing the worst-case latency experienced by all but the slowest 1% of queries. It is crucial for defining reliable SLOs.
- Tail Latency Focus: Highlights outliers caused by garbage collection, cache misses, OS scheduling, or "herd" effects during concurrent load.
- Throughput Relationship: As QPS approaches system limits, P99 latency typically increases non-linearly, signaling saturation.
- Engineering Priority: Reducing P99 often requires deeper system optimization than improving average or median latency.
Recall
Recall is the fraction of true nearest neighbors (from an exhaustive search) that are successfully retrieved by an approximate search algorithm. It measures the completeness of search results.
- Accuracy/Performance Trade-off: Higher recall typically requires searching more of the index, increasing latency and reducing potential QPS. Tuning involves lowering recall targets to gain throughput.
- Recall@K: The standard metric, defined as the proportion of the true top-K neighbors found in the retrieved top-K results.
- Business Impact: Low recall means missed relevant items, which can degrade application quality (e.g., poor recommendations).
System Saturation & Load Testing
System Saturation occurs when a vector database can no longer increase QPS without violating latency SLOs or when latency increases exponentially with load. Load Testing is the process of characterizing this limit.
- Finding the Knee: The goal is to identify the maximum sustainable QPS before latency becomes unacceptable.
- Tools & Methods: Uses tools like
wrk2orghzto generate controlled load while measuring latency distributions and error rates. - Capacity Planning: Establishes the relationship between QPS, latency, recall, and hardware resources (CPU, memory, I/O).
Concurrency & Connection Pooling
Concurrency refers to the number of simultaneous queries being processed. Connection Pooling is a client-side mechanism to manage reusable network connections to the database, critical for achieving high QPS.
- Overhead Management: Establishing a new TCP/TLS connection per query is prohibitively expensive. Pools amortize this cost.
- Pool Sizing: The optimal pool size is related to the database's ability to handle concurrent requests (its thread/goroutine pool). Too small a pool limits QPS; too large can overwhelm the server.
- Throughput Enabler: Efficient concurrency management is a prerequisite for maximizing QPS.
Batching & Bulk Queries
Batching is the technique of combining multiple independent queries into a single request to the vector database. It is a powerful method to increase effective throughput and reduce per-query overhead.
- Throughput Amplification: A single network round-trip and query planning overhead can service N queries, dramatically increasing QPS capacity.
- Server Optimization: Databases can use continuous batching internally to group independent queries for parallelized index traversal and distance computations.
- Use Case: Essential for offline processing, embedding generation, and batch inference pipelines where latency per individual query is less critical than total job completion time.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us