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

SolrInputDocument performance improvements

    XMLWordPrintableJSON

Details

    Description

      org.apache.solr.common.SolrInputDocument has only single default constructor.
      Since it's a LinkedHashMap, it's initialised with default initialCapacity=16 and loadFactor=0.75.
      That produces bad performance in situations when your document contains 10000+ different fields.

      org.apache.solr.common.SolrInputDocument class needs to have a constructor that allows to specify initialCapacity and loadFactor arguments.

      Attachments

        Activity

          People

            ryantxu Ryan McKinley
            ihrytsyuk Ivan Hrytsyuk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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