Milvus Upsert not working as expected #28744
Unanswered
reenee
asked this question in
Q&A and General discussion
Replies: 1 comment
-
An example to show upsert(). It inserts duplicate IDs [0, 1, 2, 3, 4] by upsert().
This script outputs these lines:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I’ve created a collection with the primary key feature enabled. However, when loading data from a CSV file using the upsert function, it doesn’t adhere to the primary key column. In cases where a record with the same ID already exists, instead of updating the existing entity, it’s creating a new entity with the same primary key.How can we resolve this issue?
Collection [id(primary_key_column), name, address]
collection.upsert(data_rows, primary_key_column=id)
Beta Was this translation helpful? Give feedback.
All reactions