On Fri, Jul 18, 2008 at 11:07 AM, zhonglf <[EMAIL PROTECTED]> wrote: > > I am using a single session instance to add a large number of nodes in a > "flat" structure (the nodes are consist of about 7 simple properties > (Strings mostly, and a documents)). At first, adding 1,000 node took 200 > seconds, when repository was empty.Until the size of nodes in the repository > over 100,000, adding 1,000 node took more than 10 minutes. Why ? Any ideas > to improve it?
jackrabbit is not optimized for very flat node hierarchies (e.g. with more than 30k child nodes per node). if you create a deeper structure you'll experience a lot better performance. anyway, your figures seem to be *very* high (200s for 1k nodes)... are you using any of the foillowing? - references - versioning - large binaries cheers stefan > > PS: I didn't add all nodes in one parent node, instead of using a node as a > folder for per 200 children nodes. > -- > View this message in context: > http://www.nabble.com/Too-slow---adding-1%2C000-node-into-the-repositroy-tp18525321p18525321.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > >
