·
Last changedVersion:
This version passed the hardening gate. Hardening applied 5 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 7. Review findings remaining: 1.
None
None
Expand | File | Group | Subtype | Severity | Status |
|---|
No findings available
0 findings
Problem: When a query has a large limit (e.g. 1000) and there are multiple shards (e.g. 10), naively each shard must return the full 1000 results — totaling 10,000 scored points transferred and merged. This is wasteful since data is expected to be roughly randomly distributed across auto-shards.
Instead of asking every shard for the full limit, ask each shard for a smaller limit computed via Poisson distribution statistics, then merge. This relies on auto-sharding spreading data across shards in an approximately random, independent way, so results are probabilistic rather than guaranteed complete.
These conditions and the threshold value reflect Qdrant internals at the time of writing and may change between Qdrant versions. Check current Qdrant documentation or source before giving tuning advice. Treat the threshold, the safety factor and the Poisson threshold as internal server behavior, not as user settings.
The strategy trades a small probability of slightly incomplete results for a large reduction in inter-shard data transfer, especially for high-limit queries across many shards. The 1.2x safety factor and the 99.9% Poisson threshold are intended to keep the error rate low — comparable to inaccuracies already introduced by approximate vector indices like HNSW.
Results are probabilistic, not guaranteed complete. When completeness matters, use an exact query, which this optimization does not apply to, or verify the results. Keeping limit plus offset below the threshold also avoids subsampling. Scroll performance and pagination tuning are out of scope for this skill.
Get started with chainctlchainctl skill install public/github/scaling-query-volume:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.chainreg.biz/public/github.com/github/skills/qdrant-scaling/scaling-query-volume:latest
MIT
HARDENING.md
LICENSE
SKILL.md