Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9361

PrefetchIterator#getSize() may access the internal iterator unnecessarily

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: jcr
    • Labels:
      None

      Description

      If fastSize is enabled and minPrefetch is 0, there is no need to check the internal iterator for the availability of a next value, which can be expensive in edge cases (e.g. if the result is very large but the caller actually doesn't have access rights to any of the entries).

        Attachments

        1. OAK-9361.patch
          2 kB
          Manfred Baedke

          Activity

            People

            • Assignee:
              baedke Manfred Baedke
              Reporter:
              baedke Manfred Baedke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: