smengcl commented on PR #4573:
URL: https://github.com/apache/ozone/pull/4573#issuecomment-1532308587

   > We can have have large number of buckets in the system, but we can have 
smaller number of snapshots. In such a case, its easier to iterate over 
SnapshotInfo Table and just list the buckets from there.
   
   @prashantpogde I think that can be considered further optimization. The 
currently approach with `listSnapshot` on each bucket is not the most 
efficient. I agree with @hemantk-12 that we can make the bucket's snapshot 
existence check O(1) by building some reverse mapping in `OmSnapshotManager`. 
This might require some more digging. Maybe in another jira.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to