lazy instantiation of collections and the cache [message #1843029] |
Mon, 12 July 2021 10:36 |
Eclipse User |
|
|
|
Hello, hope someone can shine a light on this...
Using eclipselink 2.6 with static weaving enabled and changetracking=true.
The problem is when doing an add to a large collection on an entity. The first time (when the entity is not found in the cache), it works great...the collection is not instantiated. The second and subsequent times though, the entire collection is instantiated.
The entity is annotated with @ChangeTracking(ATTRIBUTE).
Lazy instantiation of the collection seems to be defeated when it's found in the cache due to shouldAllowInstantiationDeferral() returning false in IndirectList because the WeavedAttributeValueHolderInterface is a simple ValueHolder and not a QueryBasedValueHolder like it is the first time.
I've yet to trace the difference back to something that we're doing in the application. Is there something I'm missing? Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.05513 seconds