MilvusClient refresh_load() #31921
-
Hello, I used collection.flush() of ORM/Collection. Now i using MilvusClient, will I use refresh_load() instead? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No need to call collection.flush() manually, milvus can automatically trigger flush action by itself. MilvusClient doesn't have a flush interface. The refresh_lolad() is to force the datacoord to refresh the segments list to update the data snapshot, this is an internal action, you can treat it as a normal load(). |
Beta Was this translation helpful? Give feedback.
No need to call collection.flush() manually, milvus can automatically trigger flush action by itself.
If you call collection frequently, there will be lots of tiny segments generated and increase the cost to compact, eventually slow down the performance of milvus.
MilvusClient doesn't have a flush interface. The refresh_lolad() is to force the datacoord to refresh the segments list to update the data snapshot, this is an internal action, you can treat it as a normal load().