Code Monkey home page Code Monkey logo

Comments (5)

xiaofan-luan avatar xiaofan-luan commented on September 26, 2024

Milvus doesn't guarantee primary key dedup.
If both key is retrieved, new will overwrite old. but we don't guarantee this over write happens.
so user has to ensure there is no over write happens

from milvus.

MichaelZhe avatar MichaelZhe commented on September 26, 2024

Milvus doesn't guarantee primary key dedup. If both key is retrieved, new will overwrite old. but we don't guarantee this over write happens. so user has to ensure there is no over write happens

Whether or not it overwrites the old data, I think it's still within a logically controllable range. However, if a mistake is made by inserting the same primary key, as in my previous issue, when I query again using ids=[0,1], it only returns the data for id==0. Yet, the data for id==1 actually exists in the database (as it can be retrieved using ids=[1]). This seems to make the database's behavior strange and uncontrollable.

from milvus.

xiaofan-luan avatar xiaofan-luan commented on September 26, 2024

Milvus doesn't guarantee primary key dedup. If both key is retrieved, new will overwrite old. but we don't guarantee this over write happens. so user has to ensure there is no over write happens

Whether or not it overwrites the old data, I think it's still within a logically controllable range. However, if a mistake is made by inserting the same primary key, as in my previous issue, when I query again using ids=[0,1], it only returns the data for id==0. Yet, the data for id==1 actually exists in the database (as it can be retrieved using ids=[1]). This seems to make the database's behavior strange and uncontrollable.

because the data can be in different segment and milvus don't have the information there is a duplicate pk. this is by design and so far we can not do anything.

if you know the pk exist, you can use upsert to delete old one and insert a new one

from milvus.

MichaelZhe avatar MichaelZhe commented on September 26, 2024

Milvus doesn't guarantee primary key dedup. If both key is retrieved, new will overwrite old. but we don't guarantee this over write happens. so user has to ensure there is no over write happens

Whether or not it overwrites the old data, I think it's still within a logically controllable range. However, if a mistake is made by inserting the same primary key, as in my previous issue, when I query again using ids=[0,1], it only returns the data for id==0. Yet, the data for id==1 actually exists in the database (as it can be retrieved using ids=[1]). This seems to make the database's behavior strange and uncontrollable.

because the data can be in different segment and milvus don't have the information there is a duplicate pk. this is by design and so far we can not do anything.

if you know the pk exist, you can use upsert to delete old one and insert a new one

OK ,Thanks

from milvus.

yanliang567 avatar yanliang567 commented on September 26, 2024

I'd close this issue, and please free to file a new one if you met any new issues

from milvus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.