Optimize retrieval of EObject with high cardinality reference [message #528872] |
Thu, 22 April 2010 05:13  |
Eclipse User |
|
|
|
Hi,
With the Proxy mechanism that EMF provides,
retrieving an object with high cardinality references results in the creation of a large number of proxies and then serialization-deserialization of these when returning them to the client. How do we optimize the retrieval of such EObject with high cardinality reference?
Thanks,
Priya
|
|
|
|
|
Re: Optimize retrieval of EObject with high cardinality reference [message #529193 is a reply to message #529146] |
Fri, 23 April 2010 06:47  |
Eclipse User |
|
|
|
Priya,
Comments below.
Priya wrote:
> Let me explain what I am trying to do - There is an EObject obj1 that
> has a EReference ref1 which is a high cardinality reference, this ref1
> is already referencing 1000s of objects, now if the client wants to
> add another target object to this reference then I have to load the
> EObject obj1 as a result of which there will be proxies created for
> all those 1000 objects, and when I return this obj1 to the client
> serialization/deserialization of these proxies is required. So it is
> this performance issue that i am referring to. I want to know if we
> can somehow apply optimization to the retrieval of such EObject with
> high cardinality reference.
I don't see any way to avoid creating proxies for all the referenced
objects. CDO helps do it more lazily, so you might want to explore how
CDO works.
>
> Thanks,
> Priya
|
|
|
Powered by
FUDForum. Page generated in 0.41513 seconds