Optimize tag and lock fetching when doing searches #519

Closed
opened 2025-12-28 17:37:40 +00:00 by sami · 0 comments
Owner

Originally created by @roman-khimov on GitHub (May 6, 2025).

Originally assigned to: @smallhive on GitHub.

I'm always frustrated when we do requests we don't need. n.comprehensiveSearchAllVersionsInNeoFS or n.searchTagsAndLocksInNeoFS both have lock/tag OIDs after their searches, but we don't utilize them and doing n.GetObjectTagging and n.getLockDataFromObjects again in ComprehensiveObjectInfo() (likely in other places as well).

Describe the solution you'd like

  1. For locks we can request lock-specific attributes and be done with it, that's everything needed.
  2. For tags just reuse known tag OIDs and GET them, do not SEARCH again.
Originally created by @roman-khimov on GitHub (May 6, 2025). Originally assigned to: @smallhive on GitHub. ## Is your feature request related to a problem? Please describe. I'm always frustrated when we do requests we don't need. `n.comprehensiveSearchAllVersionsInNeoFS` or `n.searchTagsAndLocksInNeoFS` both have lock/tag OIDs after their searches, but we don't utilize them and doing `n.GetObjectTagging` and `n.getLockDataFromObjects` again in `ComprehensiveObjectInfo()` (likely in other places as well). ## Describe the solution you'd like 1. For locks we can request lock-specific attributes and be done with it, that's everything needed. 2. For tags just reuse known tag OIDs and GET them, do not SEARCH again.
sami 2025-12-28 17:37:40 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-s3-gw#519
No description provided.