You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Matthew Broadhead <ma...@nbmlaw.co.uk.INVALID> on 2019/03/17 11:59:59 UTC

caching a query

i have a query that takes around 8 seconds and i want cache it.  i 
searched for caching a jpa query and came across query cache 
https://openjpa.apache.org/builds/2.4.1/apache-openjpa/docs/ref_guide_caching.html#ref_guide_cache_query.
i tried pinning the query but it made no difference.
i also tried the hints javax.persistence.cache.retrieveMode and 
javax.persistence.cache.storeMode but didn't see any difference there 
either.
also tried adding @Cacheable to the Entity in question