Stephen O'Donnell created HDDS-11668:
----------------------------------------

             Summary: Recon List Keys API: Resuse prefix key prefix if parentID 
is the same
                 Key: HDDS-11668
                 URL: https://issues.apache.org/jira/browse/HDDS-11668
             Project: Apache Ozone
          Issue Type: Improvement
          Components: Ozone Recon
            Reporter: Stephen O'Donnell
            Assignee: Stephen O'Donnell


As we iterate keys in the listKeys API there is logic to resolve the FSO path 
to the key which is quite expensive in aggregate over many keys.

As we iterate the keys in order, it is highly likely there will be consecutive 
keys with the same parent folder and hence prefix.

Therefore, we should save the prefix prefix and if the current parentID is 
equal to the previous one, simple reuse it, avoiding all the path construction 
work.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to