I am currently using Spring + Hibernate + MySQL for a project I am working on. I realized that I have several tables that never change. They are static, there can be no insertions or updates in these tables, and therefore they can be considered immutable. All calls to these tables are done using lazy loading (can be called) collections of entities and hql queries.
I am wondering in which case is best suited for working with such a scenario. I have the basics in place, read-only ehcache, query caching and read-only transactions (does this do anything for Mysql?). What else can I look at? What ISOLATION modes, PREPAGATION modes are best? Should I look at other caching solutions? Or should I just get rid of all this and just load the data once in a row of hash cards (this, I hope, will be the last resort)?
Another possible (far-fetched?) Solution would be to have some database in / without transactional memory and connect sleep mode to it. Are there such db mechanisms?
I would appreciate any guidance you guys have had!
java performance spring mysql hibernate
Il-bhima
source share