在使用Hibernate将逻辑从遗留应用程序(SQL/coldfushion)转移到Spring之后,我们在应用程序中经历了缓慢的过程。主要原因是使用Hibernate,我们注意到生成了许多查询,我们使用的是遗留应用程序中的一个查询(两页长的查询)。
现在编写,我正在考虑选择适当的获取策略,并尝试优化代码。你能给我其他的领域,我需要调查以优化Hibernate层或任何其他功能吗?
发布于 2017-05-30 21:20:40
hashCode和equals发布于 2017-05-31 10:44:22
例如:
select a from Model a
inner join fetch a.b as b例如:为在where条件下使用的列“name”添加索引。
select a from Model a where a.name ='x'请按以下链接操作:
http://www.thoughts-on-java.org/tips-to-boost-your-hibernate-performance/
https://docs.jboss.org/hibernate/orm/3.3/reference/en/html/performance.html
https://stackoverflow.com/questions/44269662
复制相似问题