[ 
https://issues.apache.org/jira/browse/SOLR-16097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17505071#comment-17505071
 ] 

Mike Drob commented on SOLR-16097:
----------------------------------

Initial experimentation shows that batching 100 documents at a time speeds up 
{{TestDistributedStatsComponentCardinality}} from 29 seconds to 17 seconds on 
my machine.

> Batch updates when creating test indices
> ----------------------------------------
>
>                 Key: SOLR-16097
>                 URL: https://issues.apache.org/jira/browse/SOLR-16097
>             Project: Solr
>          Issue Type: Test
>            Reporter: Mike Drob
>            Priority: Major
>
> There are a few places where we will build an index for a test by repeatedly 
> calling {{indexDoc(doc(...))}} in a loop. This sends a single document per 
> request and 1) is slow and 2) produces a lot of log output.
> We can do better by batching. Optimal batch size could be experimentally 
> determined, but I suspect that there are going to be many values which are an 
> improvement and "good enough"



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to