Skip to main content

Build

Qdrant Indexing Performance Optimization

Qdrant SkillsOfficialCertified

Diagnoses and fixes slow Qdrant indexing and data ingestion. Use when someone reports 'uploads are slow', 'indexing takes forever', 'optimizer is stuck', 'HNSW build time too long', or 'data uploaded but search is bad'. Also use when optimizer status shows errors, segments won't merge, or indexing threshold questions arise.

  • New
  • v1.0.8
  • Reviewed Jul 21
  • No reviews yet

Capabilities

  • Uploads/Ingestion Too Slow

  • Optimizer Stuck or Taking Too Long

  • HNSW Build Time Too High

    HNSW index build dominates total indexing time

  • HNSW Index for Multi-Tenant Collections

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.8

What to Do When Qdrant Indexing Is Too Slow

Qdrant does NOT build HNSW indexes immediately. Small segments use brute-force until they exceed indexing_threshold_kb (default: 10000 KB, about 10 MB). Search during this window is slower by design, not a bug.

  • Understand the indexing optimizer Indexing optimizer

Uploads/Ingestion Too Slow

Use when: upload or upsert API calls are slow.
Identify bottleneck: client-side (network, batching) vs server-side (CPU, disk I/O)

For client-side, optimize batching and parallelism:

  • Use batch upserts (64-256 points per request) and 2-4 parallel upload streams Bulk upload

For server-side, optimize Qdrant configuration and indexing strategy:

  • Create 2 to 4 shards per machine; each shard has an independent update worker, so give each one its own upload stream Multiple shards
  • Create payload indexes before HNSW builds (needed for filterable vector index) Payload index

Optimizer Stuck or Taking Too Long

Use when: optimizer running for hours, not finishing.

  • Check actual progress via optimizations endpoint (v1.17+) Optimization monitoring
  • Large merges and HNSW rebuilds legitimately take hours on big datasets
  • Check CPU and disk I/O (HNSW is CPU-bound, merging is I/O-bound, HDD is not viable)
  • If optimizer_status shows an error, check logs for disk full or corrupted segments

HNSW Build Time Too High

Use when: HNSW index build dominates total indexing time.

  • Reduce m (default 16, good for most cases, 32+ rarely needed) HNSW params
  • Reduce ef_construct (100-200 sufficient) HNSW params
  • Leave max_indexing_threads at 0 (auto) or cap it; the configuration reference suggests 8 to 16 Configuration
  • Use GPU for indexing (v1.13+), which helps most with write-heavy workloads such as a large initial upload or frequent updates to a big collection.

HNSW Index for Multi-Tenant Collections

Use when: every query filters by a tenant field and the global HNSW build dominates indexing time.

  • Skip the global HNSW and build per-tenant graphs: at collection creation, set payload_m to a non-zero value, then m: 0. Queries without a tenant filter get slower, so only do this when cross-tenant search is rare Calibrate performance

Additional Payload Indexes Are Too Slow

Use when: HNSW builds slowly after adding payload indexes, especially on high-cardinality fields such as long text.

  • Qdrant adds extra HNSW links for every payload index so filtered search keeps its quality. For a field with many unique values per point, disable those links and rely on the slower query-time ACORN strategy instead Disable extra edges

What NOT to Do

  • Do not create payload indexes AFTER HNSW is built without triggering a re-index afterward -- filterable HNSW edges won't exist for the new index until segments are re-optimized
  • Do not use m=0 for bulk uploads into an existing collection, it might drop the existing HNSW and cause long reindexing
  • Do not upload one point at a time (per-request overhead dominates)

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Qdrant Skills

View source →
qdrant-sliding-time-windowGuides sliding time window scaling in Qdrant. Use when someone asks 'only recent data matters', 'how to expire old vectors', 'time-based data rotation', 'delete old data efficiently', 'social media feed search', 'news search', 'log search…0 installsqdrant-advisorDiagnose, troubleshoot, and advise on any Qdrant deployment by loading the latest official Qdrant skills live from skills.qdrant.tech. Use this whenever someone raises a Qdrant problem or question — slow or degraded search, high or growing…0 installsqdrant-minimize-latencyGuides Qdrant query latency optimization. Use when someone asks 'search is slow', 'how to reduce latency', 'p99 is too high', 'tail latency', 'single query too slow', 'how to make search faster', or 'latency spikes'.0 installsqdrant-model-migrationGuides embedding model migration in Qdrant without downtime. Use when someone asks 'how to switch embedding models', 'how to migrate vectors', 'how to update to a new model', 'zero-downtime model change', 'how to re-embed my data', or 'can…0 installsqdrant-memory-usage-optimizationDiagnoses and reduces Qdrant memory usage. Use when someone reports 'memory too high', 'RAM keeps growing', 'node crashed', 'out of memory', 'memory leak', or asks 'why is memory usage so high?', 'how to reduce RAM?'. Also use when memory…0 installsqdrant-tenant-scalingGuides Qdrant multi-tenant scaling. Use when someone asks 'how to scale tenants', 'one collection per tenant?', 'tenant isolation', 'dedicated shards', or reports tenant performance issues. Also use when multi-tenant workloads outgrow…0 installs

Frequently asked questions about qdrant-indexing-performance-optimization

What does the qdrant-indexing-performance-optimization skill do?

Diagnoses and fixes slow Qdrant indexing and data ingestion. Use when someone reports 'uploads are slow', 'indexing takes forever', 'optimizer is stuck', 'HNSW build time too long', or 'data uploaded but search is bad'. Also use when optimizer status shows errors, segments won't merge, or indexing threshold questions arise. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the qdrant-indexing-performance-optimization skill?

Run `npx @skills-hub-ai/cli install qdrant-indexing-performance-optimization` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/qdrant-indexing-performance-optimization/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does qdrant-indexing-performance-optimization work with?

qdrant-indexing-performance-optimization runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the qdrant-indexing-performance-optimization skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use qdrant-indexing-performance-optimization after installing it?

In Claude Code, type `/qdrant-indexing-performance-optimization` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the qdrant-indexing-performance-optimization skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/qdrant-indexing-performance-optimization)](https://skills-hub.ai/skills/qdrant-indexing-performance-optimization)
HTML
<a href="https://skills-hub.ai/skills/qdrant-indexing-performance-optimization"><img src="https://skills-hub.ai/api/badges/skill/qdrant-indexing-performance-optimization" alt="Install on Skills Hub"></a>

More options in the badge docs.