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

Optimize GraphQuery when maxDepth is set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • None

    Description

      the current graph query implementation always collects edges. When a maxDepth is specified, there is an obvious optimization to not collect edges at the maxDepth level.

      In addition there are some other memory optimizations that I'd like to merge in. I have an updated version that includes the above optimization, in addition, there are some memory optimizations that can be applied if returnRoot != false. In that, It doesn't need to hold on to the original docset that matched the root nodes of the query.

      I will be posting the patch in the next few days.

      Attachments

        1. SOLR-8532.patch
          9 kB
          Kevin Watters

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            kwatters Kevin Watters
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: