Reducing Qdrant search latency under heavy writes

Keeping p99 search latency low while Qdrant ingests data depends on which data a query touches, how writes contend with reads, and whether hot data stays in RAM. This page covers the settings and trade-offs to plan.

On this page

Why Qdrant search latency spikes during heavy writes

Your self-hosted Qdrant collection serves search while bulk or continuous upserts run, and p99 latency has moved outside what your application can tolerate. The fix is a set of planned choices: what each query is allowed to touch, how reads and writes share CPU, memory and disk, and where your hot data sits. Latency under write load is rarely a single bad setting. It is usually the result of several workloads competing for the same resources without any rule about who wins.

Writes do not finish when the upsert call returns. New points land in segments, and Qdrant then runs background work on them: building or updating HNSW graph links, updating payload indexes, and running the optimizer, which merges and rebuilds segments as they grow. Each of these consumes CPU and I/O, and when the data is not yet in its final indexed form, a search may need to scan more candidates or fall back to slower paths to return a correct answer. Uploads also write to disk and fill the page cache, which can push the vectors your queries depend on out of memory. Your search traffic and this maintenance work therefore share the same cores, the same disk bandwidth and the same RAM, and the contention grows with write volume.

Before you change any setting, confirm which of these effects dominates in your environment. Ask your team to check whether latency rises during optimizer runs or only during uploads, whether the disks serving your storage path are saturated, and whether the collection's memory footprint still fits in RAM once the write load is added. Those answers decide which of the following levers matter: limiting which points a query reads, separating or batching read traffic, delaying fan-out to a second replica, and keeping hot collections in memory. The Qdrant production checklist is the starting point for these tuning decisions.

Which latency levers fit which workload

This table compares the five levers for keeping search latency low during heavy writes, with the workload each one fits, what it costs, and what to confirm for your version. Read each row against your write pattern and replication setup, and treat the confirm column as the checklist to close before you commit to a design.

LeverWhen it fitsWhat it costsWhat to confirm in the docs
Query only indexed dataIngestion is bursty and some freshness lag is acceptable for search resultsNewly written points are invisible until indexing completes, so recall on fresh data drops; memory and throughput are largely unchangedHow the indexing threshold and optimizer settings control when new segments become searchable for your version
Batch search APIYour application sends many independent queries at once, such as reranking pipelines or bulk lookupsClient code must group queries and handle partial latency per batch; throughput gains depend on query mix and hardwareBatch request format, maximum batch size and how batched queries are scheduled in your client SDK version
Delayed fan-out to a second replicaReplication factor is above one and a single replica sometimes responds slowly during writesExtra replica storage and compute are already required by replication; duplicate reads add load on the clusterReplication factor setting, the delay threshold for the fan-out and whether your SDK exposes the option
Keep hot collections in RAMA small set of frequently queried collections must stay fast while other data is writtenRequires enough memory for vectors and indexes of hot collections; cold data served from disk adds latencyWhich memory tier settings apply to vectors, HNSW and payload indexes in your version, and their default placement
Schedule heavy uploads separatelyLarge bulk loads would otherwise compete with interactive search on the same nodesNeeds a load window or separate ingestion path; search results may lag behind the source data during the loadUpload batch size, parallelism limits and whether indexing can be deferred and resumed for your version

How to apply the latency settings in order

This sequence measures the current tail latency, removes unindexed data from the query path, places hot collections, and then adds batching and fan-out only where they help. Each step ends with a check, so you can see which change moved p99 and whether it held under the same write load.

  1. Record a baseline p99 under the current write load

    Your performance or platform team runs the search workload at the same write rate your production system sees, and records p99 and p50 search latency, search throughput and write throughput over a window that covers normal traffic peaks. Keep the query set, client settings and hardware fixed so later changes are comparable. The step is done when you have a written baseline with the load profile attached, because every later check compares against it.

  2. Find unindexed data in each collection and segment

    Using the collection information returned by the Qdrant API, have the team identify collections and segments whose vectors or payload indexes are still being built, and note which payload fields your filters use that lack an index. Ask the team to confirm the indexing thresholds set on each collection, since unindexed data is searched by brute force and inflates tail latency. The step closes when you have a list of collections with pending indexing and the filter fields that need indexes, and each item has an owner.

  3. Decide where each hot collection lives

    Work with the platform team to decide which collections serve latency-sensitive queries and whether their vectors, HNSW graph and payload indexes can stay in RAM. Check the node memory against the footprint of those collections plus the write buffers and headroom your sizing plan requires, and move cold collections off the hot path where possible. The step is done when each hot collection has a named memory placement and the node has been checked to hold it without swapping or eviction under the baseline load.

  4. Enable batch search in the client

    The client team changes the application so related queries are sent through Qdrant's batch search API instead of as separate requests, which the production checklist recommends for reducing per-request overhead. Confirm with the SDK version your team uses that the batch call returns results in the same order and shape as the single-query path. The step is done when a test run returns identical results for a sample set of queries through both paths, and the throughput and p99 numbers are recorded against the baseline.

  5. Check replication factor before configuring fan-out

    Confirm the replication factor of each collection in the cluster configuration. Delayed fan-out sends a query to a second replica when the first is slow, so it only applies when the replication factor is above one. If collections run with a replication factor of one, skip this step and record that decision, because there is no second copy to query. The step is done when each collection is marked either as eligible or as not eligible for fan-out, with the reason written down.

  6. Configure delayed fan-out on eligible collections

    For collections with a replication factor above one, the platform team enables delayed fan-out in the client or search configuration that the Qdrant version in use supports, and sets the delay according to the settings in the production checklist. Confirm the setting name and default with the release notes for your Qdrant version, since behavior can change between releases. The step closes when fan-out is active on the eligible collections and a test query shows responses coming from the second replica when the first is delayed.

  7. Confirm replica health before measuring

    Before the final measurement, the operations team checks that every shard replica is active and in sync on each node, that no shard transfers are in progress, and that the optimizer has finished on the hot collections. Measuring while a replica is recovering would hide the effect of your changes. The step is done when the cluster reports all replicas healthy and the collection status is green on every hot collection.

  8. Re-measure p99 under the same write load

    Run the same write rate, query set and time window used for the baseline, and compare p99, p50, throughput and recall against the earlier numbers. Attribute gains to each change by reverting one setting at a time if results are unclear. The step is done when the comparison is recorded, any latency that did not improve has a documented cause, and recall has been checked with the team's measurement process before the changes go to production.

What goes wrong when latency tuning is rushed

Latency tuning under heavy writes often fixes one symptom and creates another. The risks below share a root cause: a change that looks faster in isolation can return stale or incomplete results, consume memory the cluster does not have, or hide the real p99 behavior of production traffic.

Stale results from a second replica

Delayed fan-out sends a query to a second replica when the first is slow, which only helps when the replication factor is above one. A replica that is behind on recent writes can return older points, so one query may see data another query does not. Before enabling it, check how far replicas lag during your write peaks and whether your application can tolerate that gap for each collection.

Production checklist

Too many collections pinned in RAM

Keeping hot collections in RAM lowers latency, but pinning every collection exhausts memory that the optimizer, indexing and the page cache also need during heavy writes. Under pressure, the node can slow down or fail just when latency matters most. Size the pinned set against measured peak usage, including segment growth from ongoing upserts, and keep a margin for background work.

Missing recent points during backfills

Querying only indexed data avoids searching unindexed segments, which keeps latency predictable. During a backfill, however, points that have been written but not yet indexed are invisible to search, so results can omit the newest records. Confirm which data must be visible immediately, and document the indexing lag your users will accept before you change query behavior.

Batch sizes that raise request latency

The batch search API lets you send several queries in one request, which reduces overhead per query. Larger batches also make each request wait for the slowest query in the group, so the p99 for a single call can rise even as throughput improves. Test batch sizes against your latency target and your client timeouts rather than against average throughput alone.

Benchmarks that ignore write patterns

A benchmark run against a static collection says little about search under live ingestion. Real writes arrive in bursts, trigger segment merges and index updates, and compete with queries for the same CPU and disk. Build the test with your actual upsert rate, batch size, payload shape and filter mix, and measure p95 and p99 during writes, not only after them.

Questions buyers ask about Qdrant latency work

What drives the cost and effort of a Qdrant latency review?

The main driver is how many moving parts the review must cover: the number of collections, vector count and dimensions, whether HNSW and payload indexes are already tuned, how many replicas and nodes serve reads, and how much write traffic overlaps with search. A review that only reads metrics costs less than one that replays a real workload against a staging cluster and tests fixes. Ask for a written scope that lists collections, environments, load patterns and the deliverables, such as a baseline report, a change plan and a retest. Cost is one-time for the review, while any retainer for ongoing testing or upgrades recurs. Some teams also need extra hardware for staging, which is a separate line in the quote.

How long does it take to get a latency baseline and a plan?

No duration is supplied for this work, so the honest answer depends on your environment and the size of the scope. The time usually depends on how quickly you can provide workload traces, collection details and access to a representative cluster, and on how many collections need separate testing. Ask any partner, including DeployOpen, for a timeline in the written scope that separates the baseline stage from the planning stage, and ask what you must supply before each stage can start. Fixed-scope engagements agree deliverables and timing in writing before work begins.

Can our own team reduce Qdrant search latency under heavy writes?

Yes, many teams can do the first steps internally if they have someone who understands their write pattern and can read Qdrant's metrics. The practical starting points are checking whether searches read only indexed data, batching queries with the batch search API, and reviewing whether hot collections stay in RAM. The Qdrant production checklist describes batch search and delayed fan-out to a second replica when the replication factor is above one. Internal teams usually struggle with controlled load testing, separating contention from index build effects, and proving that a change does not hurt recall. An outside review is most useful when those tests are the bottleneck.

What does the work need from our team?

The work needs three inputs: workload traces, collection sizes and replica layout. Workload traces show the search and write rates, the timing of bursts and the filters used in queries. Collection sizes, including vector count, dimensions, datatype, payload size and index settings, let the review compare load against memory and disk. The replica layout, meaning node count, shard count, replication factor and where each replica runs, determines which fan-out options are available. You will also need a test environment that matches production storage, which must be block storage with a POSIX-compatible file system, not NFS or S3. Ask who on your side approves changes and who owns the rollback window.

Do Qdrant Cloud tiers change the latency picture?

They change who controls the hardware and configuration, so the review scope shifts. On Qdrant Cloud, the free single-node tier has 0.5 vCPU, 1 GB RAM and 4 GB disk according to the Qdrant pricing page, which is too small for a heavy write workload, and the Standard and Premium tiers differ in uptime SLA and features. Those tiers limit which settings you can change and where you can run tests. Qdrant Hybrid Cloud and Private Cloud run in your infrastructure, so storage and node choices stay under your control. Confirm with Qdrant which tuning options and node sizes each tier exposes before you scope the work, and check current prices on the pricing page.

When should we re-run latency measurements after a Qdrant upgrade?

Re-run them after any upgrade that changes the engine, indexing behavior or your client SDK, and before you raise traffic on the upgraded cluster. Qdrant releases change storage and search behavior over time, so a baseline taken on an older version may not hold. The latest release on GitHub as of October 2026 is v1.19.2, published October 5, 2026, following v1.19.0 on August 5, 2026. Also re-run measurements after changing HNSW parameters, quantization, payload indexes or the replica layout, and after big shifts in write volume. Check the upgrade notes for each version first, and plan the retest as part of the change window.

Does a latency review carry a risk to production search?

It can, if tests run against production or if a change is applied without a rollback plan. Load tests can compete with live writes and raise latency, so run them in a staging cluster that matches production storage and replica layout. Tuning changes such as HNSW settings or quantization can also shift recall, so pair latency work with a recall check. Ask for a rollback step for each change, a clear list of what is tested in staging, and a defined window for production changes. A written scope should state who can stop a test and how.

How a search request and a write share a Qdrant node

The diagram starts with a client that sends upserts and searches to the cluster. Writes land in a shard as new points, and the optimizer builds index structures for them over time. Searches read the indexed segments and also scan points that are not yet indexed, so the amount of unindexed data is the main thing to check. When the replication factor is above one, a slow search can be sent to a second replica after a delay, which trades extra load for a tighter tail.

Writes and searches compete for the same node resources during indexing.

When keeping hot collections in RAM pays off

Keeping a collection in RAM pays off when the queries it serves are frequent enough that disk reads would show up in p99 latency during write bursts. Under heavy writes, Qdrant is already doing segment merges, index updates and optimizer work, so any search that must read vectors or HNSW graph pages from disk competes for I/O with that background activity. A collection that is queried constantly, has tight latency targets and sits on storage that is also absorbing writes is the case where placing its vectors and index structures in memory changes the tail of the latency distribution the most. A collection that is rarely queried, or that can tolerate slower responses, usually does not justify the memory.

The trade-off is memory cost against latency predictability. Holding vectors, HNSW structures, quantized vectors and payload indexes in memory means every node that hosts a shard needs enough RAM for those structures plus headroom for writes, and that memory is consumed whether or not the collection is busy. Keeping the same data on disk reduces the RAM bill but moves reads into the storage path, where the cost depends on the drive type and how much of the working set the operating system has cached. Remember that replicas multiply the footprint, so a hot collection with a replication factor above one costs more to pin than the same collection on a single copy. The figures for vector size, index overhead and replica multiplication belong in the RAM and disk sizing topic, and the placement options for each structure belong in the memory tiers topic. Use those as the source for numbers rather than estimating from this page.

To identify hot collections, start from access patterns rather than collection size. Pull request rate, search latency percentiles and cache or disk read behavior per collection from your monitoring stack, and compare them during a representative write window, not only during quiet hours. Confirm which collections your application queries on the user-facing path, since a large collection that serves only nightly batch jobs is a poor candidate. Then test the decision: place one hot collection in memory on a staging cluster that mirrors production write volume, measure p99 search latency with and without that placement, and record the RAM the node reports afterward. Ask your Qdrant contact or the operator docs to confirm which tier settings apply to your installed version before you change anything in production.

How DeployOpen scopes and supports Qdrant performance work

DeployOpen treats latency under heavy writes as a measured engineering problem inside your own infrastructure. We start from your write pattern, query load and latency targets, then change indexing, batching and replica routing one step at a time so each change can be checked against the baseline.

How we scope

  • Written scope names the collections, query paths and p99 latency targets that the work must meet.
  • We record the current write rate, batch sizes, replication factor and hardware before any change is proposed.
  • Scope states which options are in play, such as indexed-only querying, batch search and delayed fan-out, and which are excluded.

How we build

  • We reproduce read-write contention with a load test that mirrors your ingestion pattern and query mix.
  • Changes are applied in a staging copy of the collection first, with each setting recorded against the baseline result.
  • Where a replication factor above one exists, we configure delayed fan-out and confirm the second replica is safe to query.

How we hand over

  • You receive the load test scripts, the before and after latency measurements, and the configuration changes with reasons.
  • A runbook explains which settings to revisit when write volume, collection size or hardware changes.
  • We walk your platform and operations staff through the results so the tuning can be repeated without us.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer if your write load keeps changing.
  • Ask for the retest plan and the load profile to be confirmed in your quote, since both drive the effort.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.