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

The rows improvement for QueryComponent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 4.3.1, 4.5.1, 4.6
    • None
    • search
    • JVM7

    Description

      For solr Rows issues:
      1. Solr don't provide get full results API, usually customer will set the rows is Integer.maxvalue try to get the full results that cause the other issue. OOM issue in solr :SOLR-5661(https://issues.apache.org/jira/browse/SOLR-5661)
      How about open the API for rows=-1? That means return full results. Sometimes the result count will every biggest that will cause the heap OOM, but usually we can suggest the customer to make sure the result really small that can call this API. Actually we don't want to make the second call to get full results. For one is call API get total number, for two get the result set rows into total number.

      2. A litter improve, because every shard node return results has been ordered. Add first shard list into the PriorityQueue that don't need compare again only filter the same unique id.

      3. Create the PriorityQueue after check all shard return sizes, that can avoid the unnecessary memory cost especially biggest rows.

      Attachments

        1. SOLR-5674.txt
          10 kB
          Raintung Li

        Activity

          People

            Unassigned Unassigned
            raintung.li Raintung Li
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: