本文へスキップ
Skillpedia
データベース40k · #7362

qdrant-search-speed-optimization

できること

このツールは、Qdrantでの検索が遅くなる原因を見つけて修正するためのものです。検索に予定より時間がかかっている理由を分析し、処理を速くするための調整方法を提案します。

使う場面

  • ✓Qdrantデータベースでの検索に時間がかかりすぎるとき。
  • ✓クエリ(検索リクエスト)の結果が返ってくるまでに時間がかかりすぎるとき。
  • ✓設定を変更したりデータを大量に追加したりした後で、検索が遅くなったとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/github/awesome-copilot/blob/main/skills/qdrant-performance-optimization/search-speed-optimization/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Qdrantの検索がとても遅いです。どうすればいいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、メモリ不足、複雑すぎるクエリ、バックグラウンドで動いている処理、システムの問題がないかを確認します。その結果をもとに、速度を改善するための具体的な設定や調整を提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Diagnose a problem

There the multiple possible reasons for search performance degradation. The most common ones are:

  • Memory pressure: if the working set exceeds available RAM
  • Complex requests (e.g. high hnsw_ef, complex filters without payload index)
  • Competing background processes (e.g. optimizer still running after bulk upload)
  • Problem with the cluster (e.g. network issues, hardware degradation)

Single Query Too Slow (Latency)

Use when: individual queries take too long regardless of load.

Diagnostic steps:

  • Check if second run of the same request is significantly faster (indicates memory pressure)
  • Try the same query with with_payload: false and with_vectors: false to see if payload retrieval is the bottleneck
  • If request uses filters, try to remove them one by one to identify if a specific filter condition is the bottleneck

Common fixes:

Can't Handle Enough QPS (Throughput)

Use when: system can't serve enough queries per second under load.

Filtered Search Is Slow

Use when: filtered search is significantly slower than unfiltered. Most common SA complaint after memory.

  • Create payload index on the filtered field Payload index
  • Use is_tenant=true for primary filtering condition: Tenant index
  • Try ACORN algorithm for complex filters: ACORN
  • Avoid using nested filtering conditions as a primary filter. It might force qdrant to read raw payload values instead of using index.
  • If payload index was added after HNSW build, trigger re-index to create filterable subgraph links

Optimize search performance with parallel updates

Diagnostic steps

  • Try to run the same query with indexed_only=true parameter, if the query is significantly faster, it means that the optimizer is still running and has not yet indexed all segments.
  • If CPU or IO usage is high even with no queries, it also indicates that the optimizer is still running.

Recommended configuration changes

  • reduce optimizer_cpu_budget to reserve more CPU for queries
  • Use prevent_unoptimized=true to prevent creating segments with a large amount of unindexed data for searches. Instead, once a segment reaches the so called indexing_threshold, all additional points will be added in ‘deferred state’.

Learn more here

What NOT to Do

  • Set always_ram=false on quantization (disk thrashing on every search)
  • Put HNSW on disk for latency-sensitive production (only for cold storage)
  • Increase segment count for throughput (opposite: fewer = better)
  • Create payload indexes on every field (wastes memory)
  • Blame Qdrant before checking optimizer status
よくある質問

検索が急に遅くなったのはなぜですか?

システムのメモリが不足している、クエリが非常に複雑である、大量のデータを追加した後の最適化処理がまだ動いているなど、いくつかの理由が考えられます。

「レイテンシ」とは何ですか?検索にどう影響しますか?

レイテンシは、検索が完了するまでにかかる時間のことです。レイテンシが高いと、1回1回の検索で結果が返ってくるまでに長い時間がかかります。

「QPS」とは何ですか?低くなるのはなぜですか?

QPSは「Queries Per Second(1秒あたりのクエリ数)」の略です。QPSが低いと、1回の検索自体はそれほど遅くなくても、短い時間に多くの検索を処理できないことを意味します。

詳細

作者による元の説明

Diagnoses and fixes slow Qdrant search. Use when someone reports 'search is slow', 'high latency', 'queries take too long', 'low QPS', 'throughput too low', 'filtered search is slow', or 'search was fast but now it's slow'. Also use when search performance degrades after config changes or data growth.

repo: github/awesome-copilot

人気

GitHubのスター
40k
ランキング
#7362
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル