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

Lucene Index: improved cost estimation by using document count per field

    XMLWordPrintableJSON

    Details

      Description

      The cost estimation of the Lucene index is somewhat inaccurate because (by default) it just used the number of documents in the index (as of Oak 1.7.4 by default, due to OAK-6333).

      Instead, it should use the number of documents for the given fields (the minimum, if there are multiple fields with restrictions).

      Plus divided by the number of restrictions (as we do now already).

        Attachments

        1. OAK-6735.patch
          17 kB
          Vikas Saurabh
        2. LuceneIndexReadPattern.java
          7 kB
          Vikas Saurabh
        3. IndexReadPattern.txt
          463 kB
          Vikas Saurabh

          Issue Links

            Activity

              People

              • Assignee:
                catholicon Vikas Saurabh
                Reporter:
                thomasm Thomas Mueller
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: