Conditional Upserts (OR allowing specify a "version" field, search will return results with largest "version" field value) #39313
xiaobingxia-at
started this conversation in
Ideas & Feature requests
Replies: 2 comments 2 replies
-
Each upsert action will generate a new entity, the old entity will be marked as deleted. Search will return the new entity since the old one is marked as deleted. No need to add a version field. |
Beta Was this translation helpful? Give feedback.
2 replies
-
right now this has to been done with the help of another database. We can probably take this into consideration on 3.0, when PK index is supported |
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
-
Hey team, I need to do a conditional upserts because of multiple threads could update the same vector at the same time. Let's say we only update the specific record if the input record's some column value is larger than the existing value in Milvus.
Or can we specify a column as "version" column, users can just do the upserts along with the "version" info. But when doing the search, only the records with "largest version value" will be returned.
Can we support this feature?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions