About Cache

forum_thread

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin(); create typeC o; em.persist(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test, there is no result in one go; I have to disable step 1 and run again, then Step 2 output the expected results. I tried em.flush(), em.clear(), etc.. that do not work. Any idea? TIA ... different EntityManager instances are used and the L2 cache is enabled. ObjectDB Support ObjectDB - ... 2011-05-23 17:39 L2 cache? I'm not sure. But why the second find() will output? By the ...

 
forum_thread

Cascading makeTransient

Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is that we read the objects from the DB (many and large objects of class A) and then keep in the application cache only some embedded parts of those objects (let's call them class B). This application cache should work independently on the DB as if it contained transient objects. ... large objects of class A) and then keep in the application cache only some embedded parts of those objects (let's call them class B). This application cache should work independently on the DB as if it contained transient ...

 
api-jdo

javax.jdo.identity.ByteIdentity

This class is for identity with a single byte field.(Class of JDO)

 
api-jdo

evict(pc)

Mark an instance as no longer needed in the cache.(Method of javax.jdo.PersistenceManager)

 
api-jdo

javax.jdo.identity.CharIdentity

This class is for identity with a single character field.(Class of JDO)

 
api-jdo

javax.jdo.identity.ShortIdentity

This class is for identity with a single short field.(Class of JDO)

 
api-jdo

javax.jdo.identity.SingleFieldIdentity

This class is the abstract base class for all single field identity classes.(Class of JDO)

 
api-jdo

checkConsistency()

Validates the PersistenceManager cache with the datastore.(Method of javax.jdo.PersistenceManager)

 
api-jdo

makeNontransactional(pc)

Make an instance non-transactional after commit.(Method of javax.jdo.PersistenceManager)

 
api-jpa

javax.persistence.spi.PersistenceProviderResolver

Determine the list of persistence providers available in the runtime environment.(Interface of JPA)