Hibernate Tutorial 32 - Cacheing in Hibernate

preview_player
Показать описание
In this tutorial, we'll learn about Hibernate's cache support: both first level (Session) and second level cache.
Рекомендации по теме
Комментарии
Автор

Excellent explanation. Thanks so much for taking the time to share your knowledge and do this ! Much appreciated.

manumurthy
Автор

that actually makes sense. After the first call to db, nothing goes in the cache, and at the time of the second call there is nothing in the cache to determine if a visit to the db is needed.

Lufase
Автор

I have learned so much things, Thank you so much..!

lostubermensch
Автор

In first level chache get some object from db, this object will store in chache, and if call again same object then it not talk with db its return from cache, but in between two get operation if we change some value from backend then what will happen, it's give updated value or cache value

shrawankumartiwari
Автор

Fantastic Tutorials, thank you so much for your efforts!

mateuszalmannai
Автор

If I have one method in Faced with One transaction which call another method where this new method start in new transaction
Now assume from method 1 I call method 2, all processing in method 2 is complete and control comes back to method 1 and it fails there so method 1 related changes will be rolled back but what will happen to method 2 related changes? will that be rolled back

Hi Koushik can you let me know your thoughts on above scenario?

kishorebangali
Автор

where was the second level caching first level caching was using session right???

shivanshbajpai
Автор

You know what's funny? If you provide a .get() of a PK value that doesn't exist in the db, Hibernate will do two selects in the case that you write two selects. Weird.

LeBadman
Автор

you should start transaction after saving object.

the_sky