https://hibernate.atlassian.net/browse/HHH-16219 has been rejected; the problem apparently comes from our model (which is obviously suboptimal, but for good reasons) leading to crazy lazy loading. Hibernate ORM 5 was executing many more queries than necessary, and ORM 6 bundles them into one, but unfortunately that means many joins. I’ll submit a PR to fix that. |