Upgraded a java project which was on Java 8 + spring 4.0 + hibernate 3.3 to java 11 + spring 5.3 + hibernate 5.6 . After the upgrade the hibernate select queries become very slow. When there’re many results for a select query then the hibernate 5.6 is taking a lot of time compared to hibernate 3.3. What could be the reason?