[ 
https://issues.apache.org/jira/browse/SOLR-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yonik Seeley updated SOLR-272:
------------------------------

    Attachment: SolrInputDoc.patch

> With this test, the SolrInputDocument wins every time

Not once you correct the bugs ;-)

- copyField was not being done in the SolrInputDocument version
- setField was being used the for the multiValued field instead of addField, 
resulting in fewer fields.

I modified the schema (didn't work out of the box) and removed everything that 
didn't have to do with the fields in the document (partially because copyField 
wasn't implemented).

On my P4, SolrInputDocument comes in at 14% slower.... I don't know how it 
would be with all the copyField and dynamicField stuff in there.  There are 
certainly scenarios were it could be faster since it can do a single lookup for 
a multivalued field.



> SolrDocument performance testing
> --------------------------------
>
>                 Key: SOLR-272
>                 URL: https://issues.apache.org/jira/browse/SOLR-272
>             Project: Solr
>          Issue Type: Test
>    Affects Versions: 1.3
>            Reporter: Ryan McKinley
>         Attachments: SOLR-272-SolrDocumentPerformanceTesting.patch, 
> SOLR-272-SolrDocumentPerformanceTesting.patch, 
> SolrDocumentPerformanceTester.java, SolrInputDoc.patch
>
>
> In 1.3, we added SolrInputDocument -- a temporary class to hold document 
> information.  There is concern that this may be less then ideal 
> performance-wise.
> To settle some concerns (mine included) I want to compare a few SolrDocument 
> implementations to make sure we are not doing something crazy.
> I implemented a LuceneInputDocument subclass of SolrInputDocument that stores 
> its values directly in Lucene Document (rather then a Map<String,Collection>).
> This is a quick test comparing:
> 1. Building documents with SolrInputDocument 
> 2. Building documents with LuceneInputDocument (same interface writing 
> directly to Document)
> 3. using DocumentBuilder (solr 1.2, solr 1.1)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to