[ 
https://issues.apache.org/jira/browse/HDDS-11668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-11668:
----------------------------------
    Labels: pull-request-available  (was: )

> Recon List Keys API: Reuse 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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