Loading and releasing collections #20110
Replies: 3 comments 2 replies
-
Typically, you only need to call load() one time for a collection, milvus will automatically load incremental data into memory when you call insert().
Then you can use different clients to call insert() parallelly. But make sure the milvus server has enough CPU memory capacity to load the incremental data into memory. |
Beta Was this translation helpful? Give feedback.
-
@yhmo @davidlis I have a related question: do the
is the collection going to be left in the 'loaded' or 'unloaded' state? Also, if multiple clients (running in parallel in the same process, or in different processes or even on different hosts) are accessing the same collection in the same instance of Milvus at the same time, and one client calls 'unload' while some other client calls 'load' and then tries to run a search, what is going to happen? |
Beta Was this translation helpful? Give feedback.
-
I've a similar question where I need to do search based on multiple collections.. If collection is loaded while creation as mentioned by @yhmo , what happens when the node gets restart/rebooted. In this case we might lose the loaded collection right? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I need to perform searches in multiple collections at the same time, as well as add vectors to those collections.
For performance reasons, I believe it would be best to load() all collections in parallel (within same script) and then run the searches/additions.
Is this good practice? Is it possible to load an arbitrary number of collections in parallel and for months, or do I need to release collections to avoid issues/errors?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions