-
Notifications
You must be signed in to change notification settings - Fork 15
Store object tags as attributes along with a payload #1166
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
Conversation
1054a36
to
5100e11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about tag deletion?
api/layer/tagging.go
Outdated
) | ||
|
||
if isEmptyVersion || isNullVersion { | ||
versions, _, _, err := n.comprehensiveSearchAllVersionsInNeoFS(ctx, bktInfo, n.Owner(ctx), name, isNullVersion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional searches can and should be avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you suggest searching all object versions + all meta objects for this version inside GetObjectTagging
. Then filter out the required data in the code? Is it cheaper than two searches?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reworked
It is a responsibility of #1158 |
I mean deleting tags of an object that had them set on put. |
5100e11
to
7c2d530
Compare
I consider you mean this about tag removing. |
Closes #1153. Put object tags, inside tags-meta object attributes, would help to make tag based searches in the future. Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
7c2d530
to
39365be
Compare
Closes #1153.
It would help to make tag based searches in the future.