Saltar al contenido
Skillpedia
Bases de datos40 mil · #7360

qdrant-indexing-performance-optimization

Qué hace

Esta herramienta ayuda a identificar y corregir los problemas que hacen muy lenta la indexación y la carga de datos en Qdrant. Propone ajustes para acelerar las subidas de datos y las búsquedas.

Cuándo usarla

  • ✓Cuando subir datos a Qdrant tarda demasiado.
  • ✓Si el proceso de optimización del índice se queda atascado o tarda demasiado.
  • ✓Cuando la construcción del índice HNSW (un tipo de índice para búsquedas rápidas) es muy lenta.

Link de la skill

https://github.com/github/awesome-copilot/blob/main/skills/qdrant-performance-optimization/indexing-performance-optimization/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/github/awesome-copilot/blob/main/skills/qdrant-performance-optimization/indexing-performance-optimization/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi indexación en Qdrant es muy lenta, ¿qué puedo hacer?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La herramienta analiza si el problema está en tu ordenador, en la red o en el servidor de Qdrant. Te sugiere optimizar las subidas de datos por lotes, ajustar la configuración de Qdrant, como el número de 'shards', y la estrategia de indexación para acelerar el proceso.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

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)
Preguntas frecuentes

¿Por qué la búsqueda va más lenta mientras se indexan los datos?

Qdrant no construye el índice HNSW de inmediato. Para fragmentos de datos más pequeños usa un método más sencillo y rápido, que es más lento para las búsquedas. Esto cambia cuando los datos alcanzan cierto tamaño o se optimizan.

¿Qué son los 'shards' y cómo ayudan?

Los 'shards' son como divisiones de tus datos. Tener más 'shards' permite a Qdrant procesar actualizaciones e indexación en paralelo, lo que acelera el proceso general.

¿Debo crear los índices 'payload' antes o después del HNSW?

Se recomienda crear los índices 'payload' (información adicional asociada a tus datos) antes de construir el índice HNSW. Así la búsqueda con filtros funciona correctamente y se puede optimizar el tiempo total de indexación.

Detalles

Descripción original del autor

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.

repo: github/awesome-copilot

Popularidad

Estrellas en GitHub
40 mil
Posición en el ranking
#7360
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas