lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karman <pe...@peknet.com>
Subject Re: [lucy-user] input 47 too high
Date Fri, 01 Mar 2013 15:04:02 GMT
On 3/1/13 8:26 AM, Thomas den Braber wrote:

>
> I do a commit every 20 records instead of after every record to increase the performance.
> Is this a good idea? or must I do a commit after every record added
>

$indexer->commit() should be called once per $indexer object. You are 
right to batch up as many docs as possible per $indexer, but only one 
commit() call is needed.


-- 
Peter Karman  .  http://peknet.com/  .  peter@peknet.com

Mime
View raw message