Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name不是数据对象的唯一标识问题 #2003

Open
1076881851 opened this issue Oct 17, 2024 · 4 comments · May be fixed by #2010
Open

name不是数据对象的唯一标识问题 #2003

1076881851 opened this issue Oct 17, 2024 · 4 comments · May be fixed by #2010
Labels

Comments

@1076881851
Copy link

以name作为数据对象的唯一标识来存取数据,这种场景用户理解name是唯一标识,只存一份数据。但是当前以同一个name put两份数据,两份数据都会存进vineyard数据库里,元数据里的name是一样的;通过name取的是最新的一份数据,请问vineyard的设计是如何考虑的?老的数据是不是相当于残留了?
image
image

@dashanji
Copy link
Member

你可以通过object id拿到之前的数据,如果必须要用name对应一个object的时候,需要确保name不会被覆盖。另外你预期覆盖后是个什么行为比较好呢?

@Daniel-blue
Copy link

  1. At present, when using the same name to write an object, the name will be associated with the latest written object, but existing objects will also retain that name Why not remove this name from existing external objects? What is the purpose of retaining this name on an existing object? Is it because of immutable data?

  2. Can a user assume that they no longer need an existing object with the same name when writing a new object using that name? Can the existing object be automatically deleted, or can a prompt be returned to the user for decision? Or rather, due to immutable data, no deletion or other operations are performed; Only new objects can be added and associated with that name

@dashanji
Copy link
Member

@Daniel-blue Thanks for the detail. We can validate whether the name exists and make sure the object-name mapping not to be overwritten.

@dashanji dashanji linked a pull request Oct 31, 2024 that will close this issue
@github-actions github-actions bot added the stale label Nov 12, 2024
Copy link
Contributor

/cc @sighingnow, this issus/pr has had no activity for a long time, please help to review the status and assign people to work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants