• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EclipseLink make sure result of a query is not cached

 
Cedric Bosch
Ranch Hand
Posts: 92
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to make sure the result of a query doesn't enter the cache ?

I use

But that only doesn't check the cache. However the result might be cached.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cedric Bosch wrote:Is it possible to make sure the result of a query doesn't enter the cache ?

Based on this EclipseLink article about its Query Cache, I would suggest creating a named query and set the eclipselink.query-results-cache hint to false.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic