About cache

forum_thread

Need to close+open database for a commit to be taken into account

Hi, I have one case where commit (update of entity in this case) is not taken in account unless database is actually closed and re-open, no error. I tried to use flush instead of close+re-open but it does not work. So currently there is a dirty close + open + reload on each update of one of these entities, which is far from ideal. The entity involved contains (between other fields) another entity, that's the only particularity i can see. I tried with and without entity relationship defined, no difference. ... Maybe you should try disabling all sorts of cache in the configuration file, but the information provided is insufficient ...

 
manual

DELETE Queries in JPA/JPQL

Explains how to apply server side bulk delete using a JPA/JPQL query. As explained in chapter 2 , entity objects can be deleted from the database by: Retrieving the entity objects into an EntityManager . Removing these objects from the EntityManager  within an active ...

 
api-jpa

JPA Annotations for Classes

Reference (JavaDoc) of JPA 2 class annotations, including @Entity, @Embeddable, @IdClass, @Cacheable, @EntityListeners, etc.... can be further configured by annotations that specify cache preferences and lifecycle event listener policy (as explained in ...

 
issue

Terracotta Ehcache Integration

Hello , it will be good if you make alliance with terra-cotta ehcache. Their distributed memory cache is very fast.IF we mix with your engine. It will be very great for us. ... with terra-cotta ehcache. Their distributed memory cache is very fast.IF we mix with your engine. It will be very great for ...

 
api-jdo

pin(oid)

Pin the parameter instance in the second-level cache.(Method of javax.jdo.datastore.DataStoreCache)

 
forum_thread

Problem with @Basic(fetch = FetchType.LAZY)

I have a class where two fields are annotated with @Basic(fetch = FetchType.LAZY) due to them containing quite long Strings and me loading ALL entities of the database on application startup (swing app) This class should hopefully demonstrate the problem: ... //Close everything and reopen to make sure no cache of the description / code is left behind emf = ...

 
api-jdo

makeTransactional(pc)

Make an instance subject to transactional boundaries.(Method of javax.jdo.PersistenceManager)

 
api-jdo

unpinAll(subclasses, pcClass)

Unpin instances from the second-level cache.(Method of javax.jdo.datastore.DataStoreCache)

 
forum_thread

Many connections possible? and will it makes problem in future?

Hello , we are currently making new instant messenger but we were planing to use some security addons and privileges on access some of the fields on java side.   My questions is about : 1-) Can objectdb server handle 200.000+ connections at the same time concurrently ? Does it have queue and cache ? 2-) Can we give privileges to users , for example some users can only read some fields and some just can write java fields. Some users only allowed insert ability. ... at the same time concurrently ? Does it have queue and cache ? 2-) is it dangerous to use that system on many online users ? ...

 
api-jdo

evictAll(subclasses, pcClass)

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