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

PrefetchIterator#getSize() may access the internal iterator unnecessarily

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • jcr
    • 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

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

            Dates

              Created:
              Updated: