Home » Modeling » EMF » [CDO] How CDO load the resources (models) in memory?
|
Re: [CDO] How CDO load the resources (models) in memory? [message #1043427 is a reply to message #1043342] |
Wed, 17 April 2013 17:42 |
|
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
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 #1043440 is a reply to message #1043434] |
Wed, 17 April 2013 17:55 |
|
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
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
| |
Goto Forum:
Current Time: Tue Mar 19 13:34:28 GMT 2024
Powered by FUDForum. Page generated in 0.02965 seconds
|