Do you always use a second-level cache in Hibernate or do you first try it without and only use it when the performance goes down?
Make it work first, then make it fast. If you don't need caching, don't implement it.
In the applications where I've been, the database is shared among several applications, some of them are not Java at all. So, the second-level cache is not an option for me in these situations, because I never know when some other app can update the db.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With