Fast bulk uploads into Qdrant

A planning guide to loading millions of vectors into self-hosted Qdrant quickly, covering batching, parallel upserts, deferred HNSW indexing and the checks that confirm indexing has finished before traffic is served.

On this page

Why bulk uploads into Qdrant need their own plan

The fastest way to load millions of vectors into a self-hosted Qdrant collection is to defer HNSW indexing during the load and send upserts in batches, then let the optimizer build the index before any search traffic reaches the collection. Search must wait until indexing has finished, because a collection still being indexed can return slower and less complete results than the one you plan to serve. Treat the load as its own project with a start, a verification step and a cutover gate, not as a side effect of the first application deployment.

Teams need this plan in three common situations: an initial load before a new search feature goes live, a re-embedding run after a change of embedding model or dimensions, and a migration from another vector database using the Qdrant Migration Tool. Re-embedding and migration are the cases most often run against a collection that already serves traffic, so the team must decide whether the target is a fresh collection that replaces the old one or an in-place reload. Confirm which approach fits your cutover window before the first batch runs.

The open-source Qdrant engine is licensed under Apache-2.0 and is free to self-host, so the cost of a bulk load is the infrastructure it consumes and the people who run it. Plan for CPU, disk I/O and temporary memory during indexing, and confirm with your team or a partner how long the build will take on your hardware, since no general figure applies. The rest of this page covers the settings, parallelism, index completion checks and verification steps that turn a large load into a repeatable procedure.

Upload settings and when each fits

This table compares the five levers that shape a bulk load into Qdrant: batch size, parallel workers, indexing threshold, the wait flag, and runtime optimizer changes. Read each row for what it changes, when it fits, and what it costs, then combine levers only after you have measured the first load. The main takeaway is that faster loads usually move work or memory pressure somewhere else, so each setting needs a check on client, cluster, and index state.

LeverWhat it changes and when it fitsTrade-off to plan for
Batch size per upsertSets how many points each upsert request carries. Mid-sized batches fit most loads, and you should tune the number against measured request time on your own data and hardware.Larger batches hold more vectors and payloads in client and cluster memory at once, and an oversized request can fail as a whole, so retries get more expensive.
Parallel upload workersSets how many upsert requests run at the same time from one or more clients. It fits when a single client cannot saturate the cluster and the cluster has CPU and disk headroom.More workers increase write contention, optimizer activity and queueing. Past the point where the cluster is saturated, extra workers only add latency and retry noise.
indexing_threshold_kb during the loadSets the segment size above which HNSW vector indexing starts. Setting it to 0 disables vector indexing, so raw vectors land first and the index is built later. It fits one-time bulk loads into an empty or offline collection.Search quality and latency are poor until indexing finishes, and the index build moves to a later phase where it competes with live traffic. Restore the threshold before serving users.
wait flag on upsertsControls whether each upsert returns only after the change is applied and persisted, or returns earlier. Use the synchronous option when you need a confirmed write count, and check the current behavior in the Qdrant API reference for your version.Waiting makes the client slower and throttles throughput, while not waiting makes failures harder to trace. Pair the choice with a final count and status check.
Segment and optimizer settings changed at runtimeLets you change optimizer behavior on a live collection, for example to pause indexing during the load and re-enable it afterward. It fits a planned load window on a collection that already serves other workloads.Changes persist until you revert them, so a forgotten setting leaves a collection unindexed. Record the original values, apply changes through a runbook, and verify the collection status after reverting.

How to run a bulk load without losing search quality

This sequence loads a large vector set quickly by deferring HNSW indexing, then restores normal indexing and confirms the collection is complete before any query traffic reaches it. Each step ends with a check so the team knows the load is correct before serving.

  1. Design the collection before any data moves

    Fix the vector size, distance metric, datatype, payload fields and the payload indexes you need before the load starts. Payload indexes that support filtered search should exist before ingestion so the HNSW graph is built with filtering in mind, so changing them later means a rebuild. The engineer who owns the data model signs off on this design in writing. Done when a test collection with the same schema accepts a small sample of points and returns the expected payload on retrieval.

  2. Turn off vector indexing for the load

    Set indexing_threshold_kb to 0 on the collection through the optimizer settings, which Qdrant allows you to change at runtime. With the threshold at 0, vector indexing stops, so segments accumulate raw vectors without building HNSW graphs during the load. Record the value you started with so you can restore it in a later step. Confirm the change by reading the collection configuration back and checking that the optimizer value matches what you set. Exact API calls are in the collections documentation, which you should confirm for your Qdrant version before running them.

  3. Run batched and parallel upserts

    Send points in fixed-size batches from several workers, each writing to the same collection, and keep the batch size and worker count in a tested configuration file. Use upserts with stable point IDs so a retried batch overwrites rather than duplicates points. Have each worker log the batch range, the response status and any error, and write failed batches to a retry queue. Run the load in stages with a progress counter per source partition. Done when every source record is either confirmed in Qdrant or sitting in the error queue with a reason.

  4. Track errors and reconcile point counts

    Compare the number of points the source system exported with the number Qdrant reports for the collection after the load. Investigate any gap by matching point IDs for the failed batches, then reload only those batches. Check that payload fields on a random sample match the source, including nested values and null handling. Keep a record of the counts, the sample IDs and the date of the reconciliation. Done when the counts match and the sample has no mismatches, or each difference has a documented cause and fix.

  5. Restore the indexing threshold

    Set indexing_threshold_kb back to the value recorded in the second step, or to the value in your reviewed production configuration. Once the threshold is restored, the optimizer begins building HNSW indexes for segments that exceed it. This step is the point where indexing work starts, so schedule it when the cluster has capacity for index builds. Done when the configuration read-back shows the restored value and the optimizer has started reporting activity on the collection.

  6. Confirm indexing has finished

    Watch the collection status and optimizer state until no segments are waiting for indexing and the indexed point count equals the total point count. Run a fixed set of reference queries with known expected results and compare them with results from the source or an exact search baseline. Record the time the optimizer reached an idle state and the reference query results. Done when the collection reports completed indexing and the reference queries return the expected results.

  7. Confirm the collection is ready for queries

    Check the final collection status, the point count, the payload index list and the cluster health for every node that holds shards of this collection. Confirm that backups or a snapshot of the loaded collection exist before opening traffic, using the snapshot process your environment documents. Hand the collection to the application team only after the owner has signed off on the checks. Done when the signed record lists the point count, indexing status, reference query results and snapshot identifier.

How the load moves from client to indexed collection

The load starts in the source system or migration tool, which hands records to a batching client. That client sends batches to several parallel upsert workers, and the workers write into Qdrant segments while indexing is turned off for the duration of the load. Indexing is turned back on only after the load finishes, and a readiness check confirms the index is complete before any live query traffic is routed to the collection.

Bulk load path from source data to a collection that is ready to serve queries.

How the load differs by source and cluster shape

A single-node deployment has one copy of every point, so the load runs against one set of disks, one CPU pool and one memory budget. There is no replication to pay for and no cross-node coordination, which makes this the simplest shape to tune. The main constraint is that everything competes on the same machine, so upload concurrency and search traffic during the load must be balanced on that host.

  • Write work is single-copy: each upserted point is written once, so the load cost is set by vector count, dimensions and batch size.
  • Local disk is the bottleneck: Qdrant requires block-level storage with a POSIX-compatible file system, so confirm the disk throughput the load will actually see.
  • Parallel uploads share one host: more client threads help only until CPU or disk saturates, so measure in your environment before raising concurrency.
  • Snapshots are an option here: full-storage snapshots work on single-node deployments, which gives a clean restore point before and after the load.
  • Recovery means a re-run: if the host fails mid-load, the simplest path is usually restarting the upload from a known position.

Check that the host's disk and memory headroom cover the collection plus the load's temporary segment writes, and that search is paused or limited while the load runs.

Failure points that slow or corrupt bulk loads

Most bulk load problems come from a few settings and habits: indexing left off, traffic sent too early, unsupported storage, oversized batches and unverified counts. Each card below names one failure and the check that catches it before users see slow or incomplete results.

Indexing left disabled

Setting indexing_threshold_kb to 0 turns off vector indexing for the load. If the collection is never switched back, search falls back to scanning vectors and stays slow after the data arrives. Before go-live, confirm that the collection's optimizer settings show indexing enabled with the threshold you planned, and run a timed sample query against the full dataset to see that the index is in use.

Optimizer docs

Serving traffic before optimization ends

Qdrant builds indexes in the background after data is written, so a collection can accept queries while segments are still unindexed. Searches during that window can return slower results and load tests will look better or worse than steady state. Check the collection status and segment state until optimization has finished, then start read traffic in stages.

Unsupported storage under the data path

Qdrant needs block-level storage with a POSIX-compatible file system and does not run on NFS or object storage such as S3. A load that appears to work on a network mount can be slow, fail during optimization, or leave the data directory in a state that is hard to recover. Confirm the volume type on every node and use SSD or NVMe for the storage path before the first upload.

Installation requirements

Oversized batches exhausting memory

Large upsert requests hold the full payload in memory on the node that receives them and on the client side while it is serialized. Batches that are too big can exhaust RAM during a load that otherwise fits the sizing plan. Test a few batch sizes against a sample of your vectors and payloads, watch memory and request latency on each node, and choose the largest batch that stays well inside the headroom you planned.

Skipping the point count check

Parallel uploads and retried requests can leave a collection with fewer points than the source, or with duplicates if IDs are not stable. Compare the count in Qdrant with the row count in the source system, and spot check a sample of IDs and payload fields. Keep the source-side count and the list of failed batch ranges so you can reload only what is missing.

Protecting the load path and keeping it repeatable

Before the first vector is written, the load path needs its security settings in place. A self-deployed Qdrant instance is not secure by default: according to the Qdrant security documentation, it listens on all network interfaces and has no authentication configured. A bulk load that starts against a freshly installed node therefore exposes the whole write path to anyone who can reach that port. Set an admin API key for the loader, a read-only key for the services that only search, and TLS for both REST and gRPC before the loader connects. Give the loader its own credential with write access to the target collection and nothing else, and keep it out of shell history and source control. If the environment supports JWT-based access with per-collection permissions, confirm with your platform team which version and key scheme your deployment uses before you design the loader's role.

Write the load as a script that can be run again from the start without manual edits. Record the source of each batch, the batch size, the collection settings applied before the load, and the point at which indexing was re-enabled. Make the script idempotent where your data allows it, for example by deriving point IDs from stable source keys so a rerun overwrites rather than duplicates. Log every batch that succeeded so an interrupted run can resume from the last confirmed position. Ask your engineers to test the script on a copy of a small slice of the data first, and to keep the run configuration in version control next to the code that produced the embeddings.

Take a collection snapshot before the load starts and another after indexing has finished. The first gives you a rollback point if the load corrupts or mis-maps data, and the second gives you a verified baseline for later restores. Qdrant collection snapshots are tar archives of one collection on one node, and they can be stored in S3-compatible storage from v1.10.0. Plan the restore path now: snapshots restore only to clusters running the same minor version or the next minor version, so confirm the version of the target environment before you rely on a snapshot taken during the load. Store snapshots outside the cluster, and test a restore into a separate environment before the production load begins.

Bulk upload questions teams ask before hiring help

How long does a bulk load into Qdrant take?

The duration depends on how much data you load and how the load is run, so no single figure applies to every cluster. The main drivers are the vector count, the number of dimensions per vector, the datatype and any quantization, the hardware of each node, the replication factor, and the batch size and parallelism of your upload client. Replication multiplies the work because each write lands on every replica, and a replication factor of 2 doubles storage. Ask for a timed test on a representative sample of your data, then extrapolate from that measurement rather than from a generic estimate. Confirm the exact throughput on your own hardware before you commit to a schedule.

What does a consultant's effort cover, and what drives the cost?

A consultant is typically paid for the design and execution of the load, not for the raw compute, which you pay for in your own cloud or data center. Work usually includes sizing the cluster, choosing batch and parallelism settings, scripting the loader, setting the indexing threshold and restoring it, verifying point counts and index status, and documenting the runbook. Costs rise with the number of collections, the size of the dataset, the source system you are loading from, the number of environments that need the same process, and whether the work includes a repeatable pipeline. Ask for a written scope listing deliverables, the environments covered and the acceptance checks before work starts.

What does our team need to provide for a bulk load?

A bulk load depends on access and information that only your team can supply. Expect to provide the target infrastructure with block-level storage and a POSIX-compatible file system, since Qdrant cannot run on network file systems such as NFS or object storage such as S3, and SSD or NVMe drives are recommended. You will also need the source of the vectors and payloads, a sample dataset for testing, API credentials with the right scope, network paths between the loader and the cluster, and a maintenance window if the collection serves traffic during the load. Named owners for approvals and change control also shorten the schedule.

Can our own engineers run a bulk upload without outside help?

Yes, a capable engineering team can run a bulk upload with the official Qdrant documentation, and many do. The parts that usually cause trouble are batch sizing against available memory, uneven shard load, forgetting to re-enable indexing, and mistakes in the order of steps. Your team should be comfortable changing optimizer settings at runtime, watching the cluster during the load, and resuming after a failed batch. If the load is a one-time event with a small dataset and a flexible window, an internal run is often sensible. If you need the process repeated across environments or with tight timing, outside help may be more efficient. Weigh that against the time your engineers would spend learning the process.

How do we confirm indexing has finished before serving traffic?

Confirm that the collection's optimizer has built the vector index and that the point count matches the number you loaded before you route search traffic to it. Qdrant builds indexes once a segment exceeds the configured indexing_threshold_kb, so a load that disabled indexing must have its threshold restored, and the optimizer must complete its work on every segment. Check the collection info endpoint for the expected point count and indexing status, and confirm no optimization tasks are still running. Also run a set of test queries against a known exact baseline to verify results are correct. Document these checks as acceptance criteria in your runbook.

Why does disabling indexing speed up the load, and what happens afterward?

Building an HNSW index while vectors are still arriving forces repeated work, so turning indexing off during the load lets the cluster write data first. Qdrant's documentation describes setting indexing_threshold_kb to 0 to disable vector indexing, and collection optimizer settings can be changed at runtime and then re-enabled afterward. Once the load finishes, you must restore the threshold to the value you intend to serve with, which triggers index construction. Until that build completes, searches over that data are slower or less accurate, so plan the cutover accordingly. Verify the restored setting in the collection configuration as part of the runbook.

Should we load into a cluster or a single node first?

Test on a configuration that matches production, because load behavior changes with the node count, shard count and replication factor. Qdrant's distributed deployment documentation recommends at least three nodes for production clusters so quorum survives a node failure, and a shard count that is a multiple of the node count. A single-node rehearsal is useful for checking batch sizes and scripts, but its timings do not predict a replicated cluster. Ask your provider to rehearse on the target topology, or at least on a topology that differs only in size, and record the results for capacity planning.

Limits to confirm in your environment

A bulk load touches the optimizer, the storage layer, the client and the cluster platform all at once. The cards below list the limits that change how a load runs and what it costs, so you can confirm each one against your Qdrant version and your infrastructure before the load starts.

Optimizer and upsert parameters by version

The exact names, units and defaults of optimizer settings such as indexing_threshold_kb can differ between releases, so the settings you script for a load must match the version you run. The latest release on GitHub is v1.19.2, but your cluster may run an older minor version. Read the optimizer and collection docs for your version, then send a test upsert and read back the collection configuration to confirm the value took effect. Do not assume a setting changed because the API call succeeded.

Optimizer docs

Block-level SSD or NVMe storage

Qdrant needs block-level storage with a POSIX-compatible file system. It cannot run on NFS or on object storage such as S3, and SSD or NVMe drives are recommended. A load that writes to slow or network-backed volumes can take far longer than the sizing suggests, and the bottleneck often shows up only during segment merges. Ask your platform team which storage class backs the volume, benchmark a representative load on it, and confirm the volume is not shared through a network file system layer.

Installation docs

Client SDK batching behavior

The batch size, retry logic and parallelism in your client SDK determine how many upserts reach the server and how it responds to backpressure. Different SDKs and versions handle timeouts, retries and concurrent requests differently, so a retry after a timeout can write the same points twice unless upserts are idempotent by point ID. Check how your SDK reports errors on partial failure, and log the count of points acknowledged per batch so you can resume a failed load from a known position.

Memory headroom during indexing

HNSW index construction and segment optimization need RAM beyond the steady-state footprint of the collection. A load that builds indexes while it writes can push a node into memory pressure even when the final collection fits comfortably. Size the node for the peak during the load, not the size after it, and watch memory on every node while the optimizer runs. If the peak does not fit, reduce the number of parallel uploads or defer indexing until the load completes.

Helm chart gaps on Kubernetes

The community Helm chart is a supported production path, but it lacks enterprise features such as zero-downtime upgrades and automatic shard rebalancing. On a long load, a node restart, an upgrade or a pod reschedule can interrupt writes or leave shards unevenly placed. Confirm how your team will pause the load during maintenance, how it will rebalance shards by hand after new nodes join, and whether the enterprise operator fits your support model.

Installation docs

Confirm indexing has finished

A load is complete only when the optimizer has finished building indexes on every segment and the collection reports a green status. Points can be queryable before their indexes exist, so search results and latency during this window do not match the steady state. Before you route traffic, poll the collection status on each node, compare the point count with your source, and run a sample of queries against a known baseline to confirm recall and latency.

How DeployOpen scopes and delivers a Qdrant bulk load

DeployOpen plans and runs the bulk load inside your own infrastructure, so the vectors, the collection and the upload hosts never leave your cloud account, data center or air-gapped network. Before any work starts, we agree the scope in writing: the source of the vectors, the expected point count and dimensions, the collection layout, the batch and parallelism plan, the target cluster or node, and who signs off the indexing readiness check. Most engagements are fixed-scope, so deliverables and timelines are set in that written agreement and a quote follows from it. Because Qdrant ships with no authentication configured, the scope also covers the access model for the load itself: an admin API key kept out of scripts, a write-scoped identity for the loader where your Qdrant version supports JWT per-collection permissions, TLS on the endpoints the loader uses, and JSON audit logging enabled so every bulk write can be traced later.

During delivery, we set the optimizer settings for the load, including indexing_threshold_kb when indexing is deferred, and record the values before and after each change so the collection can be returned to its serving configuration. We run the upload from a tested loader with batching, retries and resumable progress, and we check disk headroom and the storage class on each node, since Qdrant requires block storage and cannot write to NFS or object storage. The handover documents the load: row counts reconciled against the source, the settings used, the time the load ran, and the readiness check that confirms indexing has finished before traffic is routed to the collection. Ongoing support, upgrades and continuous testing are available as a retainer, which suits teams that will load new data regularly after go-live.

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.