Skip to main content



      Home
Home » Modeling » EMF » Optimize retrieval of EObject with high cardinality reference
Optimize retrieval of EObject with high cardinality reference [message #528872] Thu, 22 April 2010 05:13 Go to next message
Eclipse UserFriend
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 #528893 is a reply to message #528872] Thu, 22 April 2010 06:24 Go to previous messageGo to next message
Eclipse UserFriend
Priya,

It's not clear what you're hoping to optimize. How many resources are
involved? There's no avoiding the loading of the referenced resources,
but once a given resource is loaded, subsequent proxies into that
resource will resolve more quickly, given that only lookup is involved.
Of course there's no avoiding the resolution of proxies either. So in
general there's no overhead that's entirely avoidable should you need to
reach all the referenced objects. You could use CDO to do
deserialization on a finer grained level than whole resources at a time.


Priya wrote:
> 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 #529146 is a reply to message #528893] Fri, 23 April 2010 04:24 Go to previous messageGo to next message
Eclipse UserFriend
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.

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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[Teneo] Support for overriding the column name for nested embedded objects?
Next Topic:Create expandable entry in properties view
Goto Forum:
  


Current Time: Tue Jul 01 13:24:28 EDT 2025

Powered by FUDForum. Page generated in 0.41513 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top