Load collection and insert data #10935
-
During an "insert campaign", i would like verify (for each new data) if the data is already indexed in the database by checking its ID (which it is defined by me) else ignore it. For each step, I must be sure there is not duplication so the database must be up-to-date at each insertion step. To check if the ID is already indexed, I have to realize a query and, to do that, load the collection in memory before. The load operation is time-consuming and not very efficient for massive insertion. I use Milvus 2.0. Thanks for your help ! Edit: Resolved: Misunderstanding with the API - Dideplucation/Search by id in the Roadmap |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You only need to load once and then you query by id would work even if insertion happens after load. |
Beta Was this translation helpful? Give feedback.
You only need to load once and then you query by id would work even if insertion happens after load.
Primary key deduplication is already in our roadmap, once the functionality is ready, you no longer need to do check by yourself~