Meilisearch

Default HANNOY_M parameter may cause deep graphs in large datasets

info
performanceUpdated Feb 19, 2026(via Exa)
Technologies:
How to detect:

The default HANNOY_M value of 16 might result in deeper HNSW graphs for very large datasets (10M+ documents). Deeper graphs increase search path length, requiring more distance calculations during vector search operations.

Recommended action:

For datasets exceeding 10 million documents, consider increasing the HANNOY_M parameter slightly above the default of 16. This reduces HNSW graph depth and search path length, potentially offsetting the cost of additional distance calculations with improved traversal efficiency.