About true

forum_thread

First persist takes long time

We detected that the first Persist() of an entity take much longer than all subsequent calls. We have a small example (see Appendix) which outputs the following times: ... always = "auto" on-persist = "true" on-commit = "true" /> Could you explain the long time for first persist? ...

 
api-jdo

isDeleted(pc)

Tests whether this object has been deleted.(Method of javax.jdo.spi.StateManager)

 
api-jdo

javax.jdo.identity.LongIdentity

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

 
api-jdo

isPersistent(pc)

Tests whether this object is persistent.(Method of javax.jdo.spi.StateManager)

 
api-jdo

jdoIsNew()

Tests whether this object has been newly made persistent.(Method of javax.jdo.spi.PersistenceCapable)

 
api-jdo

isDetached(pc)

Tests whether the parameter instance has been detached.(Static Method of javax.jdo.JDOHelper)

 
api-jdo

isPersistent(pc)

Tests whether the parameter instance is persistent.(Static Method of javax.jdo.JDOHelper)

 
api-jpa

javax.persistence.PersistenceUtil

Utility interface between the application and the persistence provider(s).(Interface of JPA)

 
api-jpa

javax.persistence.criteria.CriteriaQuery

The CriteriaQuery interface defines functionality that is specific to top-level queries.(Interface of JPA)

 
api-jdo

retrieveAll(pcs, useFetchPlan)

Retrieve field values of instances from the store.(Method of javax.jdo.PersistenceManager)