Hi, > > > > does the ODMG API cache Objects wich I got with an OQL-Query? > > > > > > Yes, it uses the PersistenceBroker cache. > > > > Can I avoid this? I have some large Queries, and it tooks > > much time to cache > > every object... > > I don't believe that the cache is the bottleneck. > You can try to use the Noop Cache Implementation > ObjectCacheEmptyImpl to test if performance increases. > (The cache impl class is defined in OJB.properties)
Ok, I tried it and first it was really fast, but after some tests it became very, very slow (and still is slow after restarting the tomcat) and while waiting for query.execute() the logger did these outputs: [org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: Already created persistence broker instances: 5 [org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: Already created persistence broker instances: 6 [org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: Already created persistence broker instances: 7 When I change the Cache to DefaultImpl everythings performs normally again. Any ideas about this? Sven -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
