You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ivan Hrytsyuk (Created) (JIRA)" <ji...@apache.org> on 2011/11/04 18:21:51 UTC
[jira] [Created] (SOLR-2877) SolrInputDocument performance
improvements
SolrInputDocument performance improvements
------------------------------------------
Key: SOLR-2877
URL: https://issues.apache.org/jira/browse/SOLR-2877
Project: Solr
Issue Type: Improvement
Components: SearchComponents - other
Affects Versions: 3.4
Reporter: Ivan Hrytsyuk
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2877) SolrInputDocument performance
improvements
Posted by "Simon Willnauer (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149907#comment-13149907 ]
Simon Willnauer commented on SOLR-2877:
---------------------------------------
bq. This way you could also avoid using LinkedHashMap if that is not necessary
seems reasonable
> SolrInputDocument performance improvements
> ------------------------------------------
>
> Key: SOLR-2877
> URL: https://issues.apache.org/jira/browse/SOLR-2877
> Project: Solr
> Issue Type: Improvement
> Components: SearchComponents - other
> Affects Versions: 3.4
> Reporter: Ivan Hrytsyuk
> Labels: SolrInputDocument, capacity, constructor, initial, loadfactor, performance
> Fix For: 3.5
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (SOLR-2877) SolrInputDocument performance
improvements
Posted by "Ryan McKinley (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley resolved SOLR-2877.
---------------------------------
Resolution: Fixed
Assignee: Ryan McKinley
Added in trunk and 3.x
I did not add anything to CHANGES.txt since I don't think this is significant enough
> SolrInputDocument performance improvements
> ------------------------------------------
>
> Key: SOLR-2877
> URL: https://issues.apache.org/jira/browse/SOLR-2877
> Project: Solr
> Issue Type: Improvement
> Components: SearchComponents - other
> Affects Versions: 3.4
> Reporter: Ivan Hrytsyuk
> Assignee: Ryan McKinley
> Labels: SolrInputDocument, capacity, constructor, initial, loadfactor, performance
> Fix For: 3.5
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2877) SolrInputDocument performance
improvements
Posted by "Ryan McKinley (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146516#comment-13146516 ]
Ryan McKinley commented on SOLR-2877:
-------------------------------------
rather then adding the hash functions to SolrInputDocument, what about just adding a constructor where you can pass in the Map explicilty:
{code:java}
public SolrInputDocument(Map<String,SolrInputField> fields) {
_fields = fields;
}
{code}
This way you could also avoid using LinkedHashMap if that is not necessary
> SolrInputDocument performance improvements
> ------------------------------------------
>
> Key: SOLR-2877
> URL: https://issues.apache.org/jira/browse/SOLR-2877
> Project: Solr
> Issue Type: Improvement
> Components: SearchComponents - other
> Affects Versions: 3.4
> Reporter: Ivan Hrytsyuk
> Labels: SolrInputDocument, capacity, constructor, initial, loadfactor, performance
> Fix For: 3.5
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2877) SolrInputDocument performance
improvements
Posted by "Ivan Hrytsyuk (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Hrytsyuk updated SOLR-2877:
--------------------------------
Fix Version/s: 3.5
> SolrInputDocument performance improvements
> ------------------------------------------
>
> Key: SOLR-2877
> URL: https://issues.apache.org/jira/browse/SOLR-2877
> Project: Solr
> Issue Type: Improvement
> Components: SearchComponents - other
> Affects Versions: 3.4
> Reporter: Ivan Hrytsyuk
> Labels: SolrInputDocument, capacity, constructor, initial, loadfactor, performance
> Fix For: 3.5
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org