jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Popescu ☀" <the.mindstorm.mailingl...@gmail.com>
Subject Re: Saving of nodes takes too long/Indexing configuration
Date Sun, 15 Jul 2007 10:51:16 GMT
On 7/15/07, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Hi,
> On 7/14/07, Sridhar Raman <sridhar.raman@gmail.com> wrote:
> > I use Jackrabbit extensively, and one problem that I seem to run into a lot
> > of times is when I import data, and save the nodes.  For saving 4000 nodes,
> > it almost takes 32 mins to execute the session.save() command.  Any way of
> > fixing this?
> >
> > Is it probably because all my data is getting indexed?  Could I somehow
> > specify only specific properties/types to be indexed?
> I much more suspect that the time is spent talking to the persistence
> store. Are you using an external database for persistence?
> The traditional database persistence managers issue a separate SQL
> statement (causing a network roundtrip to the database) for each node
> *and* property being saved, which can quickly end up taking a lot of
> time especially if the network roundtrip to a database server takes
> more than a few milliseconds.
> Good solutions to this problem are either to switch to the bundle
> persistence (which uses just a single statement for a node and all
> it's properties) included in Jackrabbit 1.3 and/or using an embedded
> database like the default Derby.

Jukka, can you please point me to the bundle pm in the source code?


.w( the_mindstorm )p.
  Alexandru Popescu
 Senior Software Eng.
InfoQ TechLead&CoFounder

> BR,
> Jukka Zitting

View raw message