jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@gbiv.com>
Subject Re: Workspace.importXML() and Memory
Date Fri, 28 Apr 2006 14:56:17 GMT
On Apr 28, 2006, at 5:52 AM, Simon Edwards wrote:

> I've been testing out Jackrabbit this week, mostly trying to find out
> how scalable it is. One thing I tried doing was importing a a 45Mb XML
> file containing about 300,000 XML nodes.
> Using Session.importXML() blew the JVM's heap up of course, as it  
> tried
> to read everything before writing it to the DB. So I tried
> Workspace.importXML() expecting it to write the nodes directly through
> to the DB. Unfortunately it seems to act like Session.importXML() and
> try to read everything in first before writing to the DB. Of course  
> this
> also blew up the JVM (-X512m).
> Now, my question is; is this the correct behaviour for
> Workspace.importXML() to cache everything first in memory before
> writing?

Nope, that is definitely a bug.  Sounds like a good project.


View raw message