jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <b...@redwerk.com>
Subject Re: session.save takes about 20 minutes
Date Wed, 10 May 2006 12:04:04 GMT
On Fri, May 05, 2006 at 01:43:41PM +0200, Stefan Guggisberg wrote:
> On 5/5/06, Eugeny N Dzhurinsky <bofh@redwerk.com> wrote:
> >Hi there!
> >We are facing some strange issues: there are about 4000 nodes we are 
> >trying to
> >save into repository with 
> >org.apache.jackrabbit.core.fs.local.LocalFileSystem
> >and org.apache.jackrabbit.core.state.xml.XMLPersistenceManager
> >
> >for some reason it takes about 20 minutes to save session (we are doing
> >session.save after we imported each ~400 nodes).
> >
> >Any ides how to speed up this?
> 
> don't use XMLPersistenceManager; you should use jr's default configuration
> (i.e. DerbyPersistenceManager) instead.

I have almost same results with DerbyPersistenceManager for now. It takes
about 15-20 minutes to flush... Any ideas?

Here is my repository config below:

<?xml version="1.0"?>
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository" />
    </FileSystem>

    <Security appName="Jackrabbit">
        <AccessManager class="cms.security.LuceneAccessManagerImpl"/>
        <LoginModule class="cms.auth.EasyLoginModule" />
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />

    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}" />
        </FileSystem>

        <PersistenceManager
        class="org.apache.jackrabbit.core.state.db.DerbyPersistenceManager">
            <param name="url" value="jdbc:derby:${wsp.home}/db;create=true" />

            <param name="schemaObjectPrefix" value="${wsp.name}_" />
        </PersistenceManager>
        <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index" />
        </SearchIndex>
    </Workspace>

    <Versioning rootPath="${rep.home}/versions">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${rep.home}/versions" />
        </FileSystem>
        <PersistenceManager
        class="org.apache.jackrabbit.core.state.db.DerbyPersistenceManager">
            <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true" />
            <param name="schemaObjectPrefix" value="version_" />
        </PersistenceManager>
    </Versioning>
</Repository>


-- 
Eugene N Dzhurinsky

Mime
View raw message