| Merge behavior [message #1071091] |
Fri, 19 July 2013 06:29  |
Marco Quaranta Messages: 3 Registered: July 2013 |
Junior Member |
|
|
Hello,
I'd like to know if behaviour I'm going to explain is correct.
I've a Parent with several Collection<Child> relationship (@OneToMany, lazy fatch and no cascade).
Merging Parent makes Eclipselink executing several select statement, one for each child collections.
The code that issues these statements is in the method mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) class org.eclipse.persistence.mappings.CollectionMapping
in this line:
// BUG#5190470 Must force instantiation of indirection
containerPolicy.sizeFor(valueOfTarget);
Is this behavoir correct? I've experienced really low performance doing merge in this way.
My Eclipselink version is 2.3.2
Thanks,
Marco
[Updated on: Tue, 23 July 2013 03:19] Report message to a moderator
|
|
|
|
|
|
|
| Re: Merge behavior [message #1123386 is a reply to message #1122159] |
Wed, 02 October 2013 10:08  |
Chris Delahunt Messages: 928 Registered: July 2009 |
Senior Member |
|
|
You said references are null, and I said null is not the same as not-fetched. How are they null? Null means they have been fetched or set to null, which means the merge process needs to trigger the collection on the managed entity to find out which entities are to be removed from the collection (through setting it to null).
|
|
|
Powered by
FUDForum. Page generated in 0.01749 seconds