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

PropertyIndex applies 10x penalty to is not null queries even when the node count is known

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 1.0.1
    • 1.0.2
    • query
    • None

    Description

      ContentMirrorStoreStrategy has a bit of code which multiples the cost of a "is not null" query by 10. This code was added in r1501746, but there's nothing in the related JIRA (OAK-894) which mentions this change.

      It appears to me that this multiplier should only take effect if the maximum node count has been reached. Otherwise, this code vastly overstates the cost of a query.

      In a recent test, a property on 45 nodes generated a cost of 452.

      Attachments

        1. OAK-1903.patch
          0.9 kB
          Justin Edelson

        Activity

          People

            thomasm Thomas Mueller
            justinedelson Justin Edelson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: