insert 和upsert区别问题 #39497
Unanswered
bhxiaoxinba
asked this question in
Q&A and General discussion
insert 和upsert区别问题
#39497
Replies: 1 comment 1 reply
-
理想情况下,用户使用insert自己输入的id应该自己保证id为unique,如果不是unique,milvus也不会帮你去重(去重的功能也许在3.0的某个版本中支持)。所以,insert多条相同id的数据,显示的数据行数会增加。 如果用的upsert,相当于insert+delete操作,会把旧的该条id数据删除,再insert该条id的新数据。所以,显示的数据行数不会增加。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
发现insert同一个id多次,collection中Entity数量会跟着增加,但是根据id查询,结果只有一条;但是upsert同一个id多次,Entity数量不会增加。
insert 同一个id多次,id查询会覆盖吗?
Beta Was this translation helpful? Give feedback.
All reactions