jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sstrickland <sstrickl...@costco.com>
Subject REPOSTED: Re: Creating Nodes is Excruciatingly Slow
Date Wed, 11 Apr 2007 20:50:53 GMT


I searched my jar files and did not find anything having "bundle" in the
name.  The persistence managers I have are:
     DatabasePersistencemanager.class  
     DerbyPersistencemanager.class
     JNDIDatabasePersistencemanager.class
     OraclePersistencemanager.class
     SimpleDBPersistencemanager.class

How do I change this to a bundle persistence manager?  In my
StartServer.class, I have the following code:
                // Register the repository in JNDI
    	Hashtable env = new Hashtable();
    	env.put(Context.INITIAL_CONTEXT_FACTORY,
    	     
"org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory");
    	env.put(Context.PROVIDER_URL, "localhost");
    	InitialContext ctx = new InitialContext(env);
    	RegistryHelper.registerRepository(ctx, 
    	       "repo", 
    	        configFile, 
    	        repHomeDir, 
    	        true);

My classpath contains:

      <classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="var" path="WAS_EXTDIR/log4j-1.2.13.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jackrabbit-jcr-rmi-1.2.3.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jcr-1.0.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/slf4j-log4j12-1.0.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/concurrent-1.3.4.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jackrabbit-core-1.1.1.jar"/>
	<classpathentry kind="var"
path="WAS_EXTDIR/jackrabbit-jcr-commons-1.2.3.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jackrabbit-api-1.2.3.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/lucene-1.4.3.jar"/>
	<classpathentry kind="output" path="bin"/>
      </classpath>


My repository.xml has:
       <PersistenceManager
 	class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">   
	<param name="driver" value="com.ibm.as400.access.AS400JDBCDriver" />
	<param name="url" 
		value="jdbc:as400://ISERIES/MYSCHEMA;
			errors=basic;
			trace=false;
			thread used=false;
			naming=system;
			libraries=*LIBL,wbtstdta,wbtstexc"/>
	/>
	<param name="user" value="xxxxxx" />
	<param name="password" value="xxxxxx" />
	<param name="schema" value="db2"/>
	<param name="schemaObjectPrefix" value="PEP_"/>
	<param name="externalBLOBs" value="false" />
   </PersistenceManager>

Do I need another jar?

Thank you,

Skip







Jukka Zitting wrote:
> 
> Hi,
> 
> On 4/11/07, Alexandru Popescu ☀ <the.mindstorm.mailinglist@gmail.com>
> wrote:
>> On 4/11/07, Jukka Zitting <jukka.zitting@gmail.com> wrote:
>> > You are probably running the content repository on a separate server
>> > than the database. The database persistence manager performance is
>> > quite sensitive to network latency, so the roundtrip time to the
>> > database server should be < 10ms.
>>
>> It must be something else because from 10ms up to 10-20seconds is a
>> lot of time :-).
> 
> Note that the current database persistence managers use a separate
> roundtrip for each node *and* property. Together with making the nodes
> versionable (i.e. creating the version history and root version nodes)
> and checking in the first version I wouldn't be surprized if the given
> save operation ends up doing something like 50 roundtrips. With 20ms
> per roundtrip that would already be 10 seconds for a single save.
> 
> The main perfromance boost from the bundle persistence manager comes
> from the fact that it "bundles" all the properties of a node in the
> database record used to store the node. This drops the number of
> database calls dramatically and would in a case like this probably
> give at least an order of magnitude more performance. (Note that the
> performance boost is best for write operations, as read costs are
> pretty well amortized by internal caching in Jackrabbit.)
> 
> BR,
> 
> Jukka Zitting
> 
> 

-- 
View this message in context: http://www.nabble.com/Creating-Nodes-is-Excruciatingly-Slow-tf3556976.html#a9948054
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.


Mime
View raw message