pvradhakrishna wrote:
Am also aware of something called StatelessSession, which I believe gives you better performance in case you have used Hibernate AND that you will not bring or deal with collections and relationships and then there is batching, which has to be used by you, I believe, to avoid dealing with all the records at the same time and hence avoid memory issues!
I will update you more when I use the StatelessSession and you do keep posting your solutions even if you don't come across better ideas!
Except that, apparently, you can't use StatelessSessions with classes that contain a Collection member that is mapped with lazy="false".
I believe that to be the case, although I haven't yet confirmed it. I have an open topic in this forum on that subject:
https://forum.hibernate.org/viewtopic.php?f=1&t=998373. If anyone knows the way around this, I'd love to hear it either here or there.