Hi Roger Dearnaley, Interesting findings. The code indeed looks very inefficient. Do you think you could put together a test case that allows to reproduce the issue using our test case template: https://github.com/hibernate/hibernate-test-case-templates/tree/master/orm/hibernate-orm-5 ? A for loop with a simplified version of the code you profiled would do. Thanks! |