question abot mmap #40282
-
We are currently operating 5 collections and would like to enable mmap. Based on the documentation (https://milvus.io/docs/v2.4.x/mmap.md), if we use the following, Will this apply mmap to all fields? collection.set_properties({'mmap.enabled': True})
collection.alter_index(
index_name="vector_index", # Replace with your vector index name
extra_params={"mmap.enabled": True} # Enable memory mapping for index
) Or, for already deployed Milvus instances, is it possible to apply mmap using the following method in the configuration file? queryNode:
mmap:
vectorField: false # Enable mmap for loading vector data
vectorIndex: false # Enable mmap for loading vector index
scalarField: false # Enable mmap for loading scalar data
scalarIndex: false # Enable mmap for loading scalar index |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@yhmo thanks for your works! Your detailed answers are always very helpful, and I really appreciate it. |
Beta Was this translation helpful? Give feedback.
-
"mmap.enabled" is applied to both scalar field and vector field. milvus/internal/querynodev2/segments/utils.go Line 265 in 679a145 milvus/internal/querynodev2/segments/utils.go Line 283 in 679a145 |
Beta Was this translation helpful? Give feedback.
Three entries to configure mmap:
collection level
collection.set_properties({'mmap.enabled': True})
In this doc mentioned: "At the collection level, memory mapping is applied to all unindexed raw data within a collection, excluding primary keys, timestamps, and row IDs. "
index level
schema.add_field(field_name="embedding", datatype=DataType.FLOAT_VECTOR, dim=768, mmap_enabled=True)
The doc mentioned: "For ind…