Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:13 Go to next message
Priya Missing name is currently offline Priya Missing nameFriend
Messages: 14
Registered: July 2009
Junior Member
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 10:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Optimize retrieval of EObject with high cardinality reference [message #529146 is a reply to message #528893] Fri, 23 April 2010 08:24 Go to previous messageGo to next message
Priya Missing name is currently offline Priya Missing nameFriend
Messages: 14
Registered: July 2009
Junior Member
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 10:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
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: Thu Apr 25 01:56:44 GMT 2024

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

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

Back to the top