jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Help with SearchIndex parameters
Date Thu, 07 Feb 2008 12:50:04 GMT
Sridhar Raman wrote:
>> yes, most probably. Because Jackrabbit stores any pending modification in
>> memory, the heap is probably used up and the GC runs very often in your
>> import.
>> try saving after 1000 nodes.
> How do I go about doing this?  I import 20000 nodes in one go, and these
> elements are all same-level children of a node (let's call it BooksNode).
> Currently, I am doing a BooksNode.save() that results in the long commit
> time.  How do I actually split this save into groups of 1000 nodes?

if you implement a wrapper around the ContentHandler returned by 
Session.getImportContentHandler() you can call session.save() whenever you count 
1000 nodes that went through the content handler.


View raw message