Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » refreshIdentityMapResult - refresh cache only when new version(How to refresh cache only when there is a new version in database?)
refreshIdentityMapResult - refresh cache only when new version [message #1859970] Fri, 07 July 2023 09:27 Go to next message
Milka Milicic is currently offline Milka MilicicFriend
Messages: 1
Registered: July 2023
Junior Member
I am using refreshIdentityMapResult on the ReadQuery and the eclipse version 2.7.12. I noticed that the data in cache is always refreshed. How to refresh the data in cache only when there is a change in database, not always? I tried with setShouldOnlyRefreshCacheIfNewerVersion(true), but it does not have any effect.
Re: refreshIdentityMapResult - refresh cache only when new version [message #1860059 is a reply to message #1859970] Fri, 14 July 2023 15:12 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 52
Registered: December 2021
Member
Are you using optimistic locking on your entities? setShouldOnlyRefreshCacheIfNewerVersion can only work with entities with versions to match up. And how are you verifying the cached data is being refreshed?
Previous Topic:Can't find eclipselink bundle when running java app with docker
Next Topic:Memory comsumption with eclipselink (2.7)
Goto Forum:
  


Current Time: Wed Feb 21 04:10:37 GMT 2024

Powered by FUDForum. Page generated in 0.02692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top