This couldn’t have reliably worked before either. You are essentially sharing a Session between fork join threads, which is not allowed. Session is not thread-safe. If you want to improve loading performance, you should rather configure a @BatchSize and initialize in the same thread. |