About cache

forum_thread

Optimization of Map Queries

hi! I am having loads and loads of occurrences of something like ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someProperty ... ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someOtherProperty .. ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someMoreProperties I need to use full qualified names for casting as well as for the map keys because same entity simple names may occur multiple times. Now I've got two questions: ... got two questions: 1) Will odb smart enough to cache the map.get(..) result(s) once to not query the map again and again for ...

 
forum_thread

Unexpected behaviour upon update. Bug?

This sample does not work as I expect.  Why?  Is it a bug? Below is the complete program. Expect: 3 Get: 4 import java.io.Serializable; import java.util.List; import javax.persistence.*; @Entity public class Update implements Serializable   {     @Id     int i;     int v; #1 2011-09-19 15:14 This sample does not work as I expect.  Why?  Is it a bug? Below is the complete program. Expec ...

 
api-jdo

pinAll(oids)

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

 
api-jdo

unpinAll(oids)

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

 
api-jpa

SharedCacheMode.UNSPECIFIED

Caching behavior is undefined: provider-specific defaults may apply.(Enum Constant of javax.persistence.SharedCacheMode)

 
forum_thread

Speeding up reporting queries with size() on list

Hi, I'm working on some reporting stuff in our application. One of few different reports should include activity on last modified objects. The query for now looks like this: select date(insp.lastModificationDate), insp.modifiedBy, insp.description.length(), insp.products.size(), insp.picture from Inspiration insp order by date(insp.lastModificationDate) desc insp.description is normal String field in Inspiration entity. insp.products is a list with 0 to 600 objects. Definition: ... On 'hot' db file  without query result in cache, execution time is between 500ms and 1.2 sec. The same query without ...

 
api-jdo

PersistenceCapable.cacheable

Whether this class is cacheable in a Level2 cache.(Annotation Element of javax.jdo.annotations.PersistenceCapable)

 
api-jdo

evictAll(pcClass, subclasses)

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

 
api-jpa

clearCachedProviders()

Clear cache of providers.(Method of javax.persistence.spi.PersistenceProviderResolver)

 
forum_thread

Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity

I doubt this is an ObjectDB-enhancer problem, I am however reporting it in case anybody else encounters the problem too. It is mostly also not a concern for my own web app, because in most cases a non-static logging variable can be used in an @Entity.     ObjectDB 2.6.3_04     Apache Log4j2 - 2.5     Mac OS X     jdk1.7.0_51 or jdk1.8.0_60     NetBeans 8.1Beta ... see that link for examples). My LoggerWrapper offers a cache of loggers keyed to classes for lookup: public final ...