On 4/13/07, James liu <[EMAIL PROTECTED]> wrote:
i find it will be OutOfMemory when i get more that 10k records.

so now i index 10k records( 5k / record)

In one request?  There's really no reason to put more than hundreds of
documents in a single add request.

If you are indexing using multiple requests, and always run into
problems at 10k records, you are probably hitting memory issues with
Lucene merging.  If that's the case, try lowering the mergeFactor so
fewer segments will be merged at the same time.

Some other things to be careful of:
- don't call commit after you add every batch of documents
- don't set maxBufferedDocs too high if you don't have the memory

-Yonik

Reply via email to