Hi group,
I have a performance issue and really need a solution. I have a database and one of the tables contains about 100000 records which are child records of a parent table. Within my code the parent and child records are connected as following:
Code:
child.setParent(parent);
parent.add(child);
The problem is that when I add the child record to the parent object, all already existing child records are loaded from the database by Hibernate (lazy loading). This is the problem of my performance issue. I'm looking for a solution that I can only add the newly created child to the parent without Hibernate is loading the already existing from the database.
Could somebody please help me to solve this problem?
Thanks in advanc,
ErBruijn.