You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Stephen O'Donnell (Jira)" <ji...@apache.org> on 2024/11/13 10:46:00 UTC
[jira] [Resolved] (HDDS-11668) Recon List Keys API: Reuse key prefix if parentID is the same
[ https://issues.apache.org/jira/browse/HDDS-11668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen O'Donnell resolved HDDS-11668.
--------------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
> 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
> Fix For: 2.0.0
>
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org