Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] How CDO load the resources (models) in memory?
[CDO] How CDO load the resources (models) in memory? [message #1043342] Wed, 17 April 2013 15:26 Go to next message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
Hi,

I have a doubt about how CDO load in memory the resources. The metamodel I'm designing will have 5 packages, and every package will have its own editor. So finally I will have a lot of resources related between them.

Imagine a user that have read/write permissions to all the repository, and this repository have an amount of 20 resources related between them of this metamodel.

When a View or Transaction is opened, does the CDO server send all the contents of these 20 resources immediately? Or maybe when load a certain resource (I don't know if a resource is loaded immediately it is received)? Or maybe only when an element of the resource is required from the client?

This is important, cause the size of this resources could be so large, and the repository will grow up... And having all of the information loaded in memory I think it's not efficient...

Somebody can illuminate me, please?

Cheers,
Marc
Re: [CDO] How CDO load the resources (models) in memory? [message #1043427 is a reply to message #1043342] Wed, 17 April 2013 17:42 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 17.04.2013 17:26, schrieb Marc Gil:
> Hi,
>
> I have a doubt about how CDO load in memory the resources. The metamodel I'm designing will have 5 packages, and every
> package will have its own editor. So finally I will have a lot of resources related between them.
>
> Imagine a user that have read/write permissions to all the repository, and this repository have an amount of 20
> resources related between them of this metamodel.
>
> When a View or Transaction is opened, does the CDO server send all the contents of these 20 resources immediately? Or
> maybe when load a certain resource (I don't know if a resource is loaded immediately it is received)? Or maybe only
> when an element of the resource is required from the client?
>
> This is important, cause the size of this resources could be so large, and the repository will grow up... And having
> all of the information loaded in memory I think it's not efficient...
>
> Somebody can illuminate me, please?
By default CDO loads each single object on demand, including resource objects. You can adjust this default behaviour
with various prefetch mechanisms: http://wiki.eclipse.org/CDO/Tweaking_Performance

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] How CDO load the resources (models) in memory? [message #1043434 is a reply to message #1043427] Wed, 17 April 2013 17:51 Go to previous messageGo to next message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
Thanks Eike,

In any case, as far as I know, when you demand to load a resource into a resource set, all the resource is read, isn't it? So if the resource set of the view/transaction contains all these 20 resources, all of them will be loaded, am I right?

Cheers,
Marc
Re: [CDO] How CDO load the resources (models) in memory? [message #1043440 is a reply to message #1043434] Wed, 17 April 2013 17:55 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 17.04.2013 19:51, schrieb Marc Gil:
> Thanks Eike,
>
> In any case, as far as I know, when you demand to load a resource into a resource set, all the resource is read, isn't
> it?
No, not with CDO.

> So if the resource set of the view/transaction contains all these 20 resources, all of them will be loaded, am I right?
No.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] How CDO load the resources (models) in memory? [message #1043443 is a reply to message #1043440] Wed, 17 April 2013 18:03 Go to previous message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
Really fine! I will test it.

Thanks Eike Smile
Previous Topic:Recursive loading
Next Topic:[CDO] Oracle null index field name
Goto Forum:
  


Current Time: Tue Apr 16 05:40:22 GMT 2024

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

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

Back to the top