enhance: mmap for faiss hnsw (#36943)

Unblock the mmap check for Faiss-based HNSW

Signed-off-by: Li Liu <li.liu@zilliz.com>
This commit is contained in:
liliu-z 2024-10-17 13:05:23 +08:00 committed by GitHub
parent 821750d902
commit 811f6f2402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,6 +81,10 @@ func IsVectorMmapIndex(indexType IndexType) bool {
indexType == IndexFaissBinIDMap ||
indexType == IndexFaissBinIvfFlat ||
indexType == IndexHNSW ||
indexType == IndexFaissHNSW ||
indexType == IndexFaissHNSWPQ ||
indexType == IndexFaissHNSWSQ ||
indexType == IndexFaissHNSWPRQ ||
indexType == IndexScaNN ||
indexType == IndexSparseInverted ||
indexType == IndexSparseWand