
Qdrant Indexing Optimization
OfficialFreeImprove Qdrant indexing and ingestion performance effectively.
Free · Opens the source repo
What Qdrant Indexing Optimization does
The Qdrant Indexing Optimization skill provides a comprehensive guide for diagnosing and resolving performance issues related to indexing and data ingestion in Qdrant. This skill is particularly useful for developers and data engineers who encounter slow uploads, prolonged indexing times, or errors during the optimization process. By following the structured instructions, users can identify whether the bottleneck lies on the client-side or server-side and take appropriate actions to enhance performance.
Users will learn to optimize their Qdrant configurations by adjusting parameters such as the number of shards, batch sizes for uploads, and the management of HNSW index settings. The skill emphasizes the importance of understanding the indexing optimizer and provides detailed steps for monitoring the optimizer's status to ensure efficient operations. It also covers strategies for bulk loading large datasets, including when to disable HNSW and how to manage memory usage during uploads.
In addition to performance improvements, the skill addresses common pitfalls, such as the consequences of creating payload indexes after HNSW has been built, which can lead to degraded search performance. By adhering to the guidelines provided, users can significantly reduce indexing times and improve the overall efficiency of their Qdrant implementations, making it an essential resource for anyone working with this vector database.
When to use it
Use this skill when you experience slow uploads, prolonged indexing times, or errors in the optimization process with Qdrant.
When not to use it
This skill may not be suitable for users who are not working with Qdrant or those who are not facing performance issues related to indexing.
What you can build with it
Resolving Slow Uploads
When users report slow upload speeds, this skill helps diagnose whether the issue is client-side or server-side and suggests optimizations.
Improving Indexing Times
For users facing long indexing times, the skill provides strategies to adjust HNSW parameters and optimize server configurations.
Monitoring Optimizer Status
When the optimizer appears stuck, this skill guides users on how to check progress and troubleshoot potential errors.
How to install Qdrant Indexing Optimization
View source1. Install with the skills CLI
npx skills add github/awesome-copilot/indexing-performance-optimization --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by githubWhat 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: 20 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) Points API
- Use 2-4 parallel upload streams
For server-side, optimize Qdrant configuration and indexing strategy:
- Create more shards (3-12), each shard has an independent update worker Sharding
- Create payload indexes before HNSW builds (needed for filterable vector index) Payload index
Suitable for initial bulk load of large datasets:
- Disable HNSW during bulk load (set
indexing_threshold_kbvery high, restore after) Collection params - Setting
m=0to disable HNSW is legacy, use highindexing_threshold_kbinstead
Careful, fast unindexed upload might temporarily use more RAM and degrade search performance until optimizer catches up.
See https://search.qdrant.tech/md/documentation/tutorials-develop/bulk-upload/
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_statusshows 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 config - Keep
max_indexing_threadsproportional to CPU cores Configuration - Use GPU for indexing GPU indexing
HNSW index for multi-tenant collections
If you have a multi-tenant use case where all data is split by some payload field (e.g. tenant_id), you can avoid building a global HNSW index and instead rely on payload_m to build HNSW index only for subsets of data.
Skipping global HNSW index can significantly reduce indexing time.
See Multi-tenant collections for details.
Additional Payload Indexes Are Too Slow
Qdrant builds extra HNSW links for all payload indexes to ensure that quality of filtered vector search does not degrade.
Some payload indexes (e.g. text fields with long texts) can have a very high number of unique values per point, which can lead to long HNSW build time.
You can disable building extra HNSW links for specific payload index and instead rely on slightly slower query-time strategies like ACORN.
Read more about disabling extra HNSW links in documentation
Read more about ACORN in documentation
What NOT to Do
- Do not create payload indexes AFTER HNSW is built (breaks filterable vector index)
- Do not use
m=0for 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)
Frequently asked questions about Qdrant Indexing Optimization
Similar skills
Heap Snapshot Analysis
Investigate V8 heap snapshots for memory issues.
VS Code Performance Workflow
Automate performance investigations in VS Code.
Memory Leak Audit
Prevent memory leaks with effective coding patterns.
CPU Profile Analysis
Analyze V8 and Chrome performance profiles for optimization.
Chat Performance Testing
Benchmark and validate chat UI performance in VS Code.
Vercel React Best Practices
Optimize your React and Next.js applications for performance.
