Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it hibernate doing

 
rama rajesh
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two applications are fetching the same data from the cache and trying to modify the data.
in this scenario, we will get -->dirty read problems,phantom read problems etc , right?
how hibernate is helping in this scenarios?
Hibernate firstlevel cache, we could not disable. second level only we are disabling.

how hibernate avoiding dirty read problems,phantom read problems etc.




 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Two applications are fetching the same data from the cache and trying to modify the data.

This is only a problem if you are talking about the second level cache and the cache is distributed. Hibernate checks for changes in cached objects.


Hibernate firstlevel cache, we could not disable. second level only we are disabling.

Its not that normal to enable the second level cache. But like I said, unless your cache is distributed this is not an issue. When it comes to distributed cache, cache providers have a bunch of configuration options you can tweak.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic