Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15049

Optimize TopLevelJoinQuery "self joins"

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: main (9.0)
    • Fix Version/s: 8.8, main (9.0)
    • Component/s: query parsers
    • Labels:
      None

      Description

      The "TopLevelJoinQuery" join implementation added recently performs well in a variety of circumstances. However we can improve the performance further by adding logic to handle the special case where fields being joined are the same (e.g. fromIndex is null and fromField == toField).

      Currently this self-join usecase still does a lot of work to convert "from" ordinals into "to" ordinals. If we make the query (or QParserPlugin?) smart enough to recognize this special case we can skip this step and improve performance greatly in this case.

        Attachments

          Activity

            People

            • Assignee:
              gerlowskija Jason Gerlowski
              Reporter:
              gerlowskija Jason Gerlowski

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                  Issue deployment