What is the correct why to get EclipseLink JPA query.getResultList() results in the cache? -


when use eclipselink jpa query.getresultlist() doesn't store results in cache when call merge first call select update each object.

what's correct query results in cache?

i'm thinking query call entitymanager find each result - seems wrong. can't call find first don't know object id.

basically want cache data in-memory (in cache) , have updates quick possible.

thanks

eclipselink caches every object returned getresultlist() in shared (l2) cache default.

if not getting caching, have mis-configured something.

please include code, configuration, , sql log.

are using spring? (see http://www.eclipse.org/forums/index.php/t/200321/)

ensure have not disabled shared cache, or configured refreshing.

how many object reading, , how long query merge? if reading lot of objects, may need increase cache size (default 100), or change cache type.

see, http://wiki.eclipse.org/eclipselink/userguide/jpa/basic_jpa_development/caching


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -