Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11668

Recon List Keys API: Reuse key prefix if parentID is the same

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: