[ https://issues.apache.org/jira/browse/SOLR-906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655442#action_12655442 ]
Ryan McKinley commented on SOLR-906: ------------------------------------ The other aspect no note is that StreamingHttpSolrServer sends the request in the background so after you call: add( doc ) or add( list ) that thread is free to keep working. With the off the shelf CommonsHttpSolrServer the client needs to wait for the server to parse the request and index the data before it can continue. This switches where the client gets blocked. * with CommonsHttpSolrServer it blocks while waiting for solr to *write the response* * with StreamingHttpSolrServer it blocks while waiting for solr to *read the request* > Buffered / Streaming SolrServer implementaion > --------------------------------------------- > > Key: SOLR-906 > URL: https://issues.apache.org/jira/browse/SOLR-906 > Project: Solr > Issue Type: New Feature > Components: clients - java > Reporter: Ryan McKinley > Fix For: 1.4 > > Attachments: SOLR-906-StreamingHttpSolrServer.patch, > StreamingHttpSolrServer.java > > > While indexing lots of documents, the CommonsHttpSolrServer add( > SolrInputDocument ) is less then optimal. This makes a new request for each > document. > With a "StreamingHttpSolrServer", documents are buffered and then written to > a single open Http connection. > For related discussion see: > http://www.nabble.com/solr-performance-tt9055437.html#a20833680 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.