Can someone explain the Query Caching for JPA or post some good links

StackOverflow https://stackoverflow.com/questions/19354514

  •  30-06-2022
  •  | 
  •  

سؤال

 Query "{myquery}" is removed from cache  excluded permanently. 
 Query "{myquery}" is not cached because its result is not obtained by executing a 
 select statement. This can happen if the query was evaluated in-memory. The result
 was provided by org.apache.openjpa.datacache.QueryCacheStoreQuery$CachingResultObjectProvider.

I am getting this openjpa warning message in my logs constantly. We have set L2 caching for both query and data. It seems to me that in essence it means that the data is being fetched from the QueryCache results. But I would not have expected a warning just by setting L2 caching

هل كانت مفيدة؟

المحلول

Read about the Prepared SQL Cache in the user manual.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top