• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is it hibernate doing

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.




 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic