Index of every page on this site: llms.txt
All skills
github avatar

/indexing-performance-optimization

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

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.

  • 1 file
  • 4.7 KB
  • Updated 7 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/github/awesome-copilot/indexing-performance-optimization

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈90 tokens for metadata: the name and description. ≈1.1k when used: this file.

Description uses 4.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈368 characters, or 4.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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: 20 MB). Search during this window is slower by design, not a bug.

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_kb very high, restore after) Collection params
  • Setting m=0 to disable HNSW is legacy, use high indexing_threshold_kb instead

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_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.

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=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)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 7 months ago
  • Performance
  • qdrant
  • indexing
  • hnsw
  • vector-search
  • optimization
  • bulk-upload
  • sharding
  • payload-index

README badge

README badge for github/awesome-copilot/indexing-performance-optimization

Diagnoses and optimizes slow Qdrant indexing and data ingestion by tuning HNSW parameters, sharding, batching, and payload indexes. Addresses specific bottlenecks like uploads taking too long, optimizer stalling, and HNSW build time dominating performance.

Generated from the current SKILL.md.

Does this skill help with slow vector search queries or just indexing?
This skill focuses on indexing and data ingestion performance. Search slowness during unindexed periods is expected behavior in Qdrant (segments use brute-force until they exceed the indexing threshold), but the skill covers how to manage that tradeoff.
What's the difference between client-side and server-side upload bottlenecks?
Client-side bottlenecks are network, batching, and parallelism issues—fix by using batch upserts of 64-256 points and 2-4 parallel streams. Server-side bottlenecks are CPU, disk I/O, and indexing strategy—fix by adding shards, creating payload indexes early, or temporarily disabling HNSW during bulk loads.
Can I disable HNSW indexing to speed up uploads?
Yes, for bulk loads you can set `indexing_threshold_kb` very high to defer HNSW building until after uploads complete. Do not set `m=0` in existing collections as it may drop the current HNSW and trigger expensive reindexing.
How do I know if the optimizer is actually stuck versus just taking a long time?
Use the optimizations endpoint (available in v1.17+) to check actual progress. Legitimate large merges and HNSW rebuilds can take hours. If `optimizer_status` shows an error, check logs for disk-full or corrupted segments.
What HNSW parameters should I tune to reduce build time?
Reduce `m` from the default 16 (lower values are fine for most cases), reduce `ef_construct` to 100-200, keep `max_indexing_threads` proportional to CPU cores, or enable GPU indexing if available.

Generated from the current SKILL.md. These answers refresh after source changes.