jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme BENOIS <ben...@argia-engineering.fr>
Subject Re: Newbies question
Date Thu, 12 Jan 2006 10:37:33 GMT

	Thanks for your response.

	I carried out some tests with my 180000 nodes, when i save per block of
100 nodes the execution time is 8 hours and my store is very big : 1.3Go

	When i launch a simple query, my CPU, RAM is full and execution is very
very long ...

	Could you help me please ?

My repository.xml here : 

<?xml version="1.0" encoding="ISO-8859-1"?>
        <param name="path" value="${rep.home}/repository"/>
    <Security appName="Jackrabbit">
           <param name="anonymousId" value="anonymous"/>
    <Workspaces rootPath="${rep.home}/workspaces"
    <Workspace name="${wsp.name}">
            <param name="path" value="${wsp.home}"/>
            <param name="path" value="${wsp.home}/index"/>
            <param name="useCompoundFile" value="true"/>
            <param name="minMergeDocs" value="100"/>
            <param name="volatileIdleTime" value="3"/>
            <param name="maxMergeDocs" value="100000"/>
            <param name="mergeFactor" value="10"/>
            <param name="bufferSize" value="10"/>
            <param name="cacheSize" value="1000"/>
            <param name="forceConsistencyCheck" value="false"/>
            <param name="autoRepair" value="true"/>
    <Versioning rootPath="${rep.home}/version">
            <param name="path" value="${rep.home}/version"/>

Best Regards,

Le vendredi 06 janvier 2006 à 19:17 +0200, Jukka Zitting a écrit :
> Hi,
> On 1/6/06, Jérôme BENOIS <benois@argia-engineering.fr> wrote:
> > I want use jackrabbit in order to create 180000 content nodes. But, how
> > to use correctly the session ? Call session.save() for each nodes or
> > prefer call session.save() per bloc of 1000 nodes ?
> It depends on your performance and memory use requirements. Each
> save() will cost you some time, but the more changes you queue up
> before calling save() the more memory your process will use to hold
> the pending changes. Calling Session.save() only per a block of
> changes is probably better for such bulk loads.
> You may also want to take a look at the Workspace.importXML() and
> Workspace.getImportContentHandler() for an efficient alternative to
> bulk loading large amounts of data.
> BR,
> Jukka Zitting
> --
> Yukatan - http://yukatan.fi/ - info@yukatan.fi
> Software craftmanship, JCR consulting, and Java development

View raw message