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

Fast result size estimate

    XMLWordPrintableJSON

Details

    Description

      When asking for the correct result size of a query, the complete result needs to be read, so that access rights checks are made, and (unless the index is known to be up-to-date, and can process all conditions) so that the existence and all query conditions are checked.

      Jackrabbit 2.x supports a fast way to get an estimate of the result size, without doing access rights checks. See also JCR-3858.

      Please note that according to the JCR API, NodeIterator.getSize() may return -1 (for "unknown"), and in Oak this is currently done if counting is slow. This would also need to be disabled if a fast result size estimate is needed.

      Attachments

        1. OAK-2926.patch
          34 kB
          Thomas Mueller
        2. OAK-2926-b.patch
          33 kB
          Thomas Mueller
        3. OAK-2926-b-1.0.patch
          33 kB
          Thomas Mueller
        4. OAK-2926-b-1.2.patch
          33 kB
          Thomas Mueller
        5. OAK-2926-c.patch
          13 kB
          Thomas Mueller
        6. OAK-2926-c-1.0.patch
          13 kB
          Thomas Mueller

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: