Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Fits CDO to my needs?
Fits CDO to my needs? [message #895256] Thu, 12 July 2012 09:34 Go to next message
Markus Jo is currently offline Markus JoFriend
Messages: 83
Registered: January 2012
Member
Hi,
we have an EMF- Application.... our problem is, that our model has about 250mb in Memory after garbaging......when saving our model the memory pecks up to 800 mb which is too much for our customer.....besides it takes 2 minutes to open the model and 2 minutes to save it.

Eike Stepper recommend CDO....but does it fit to what we already have ?

1. Can we still work with a model-file ?

2. Does our costum code we have done e.G. in the MetamodelEditor still work ??

3. Do our custom notifiers and content adapters we added to the model root still work ?

4. AND will we be faster and reduce our memory needs ? 10% 50% 90% ?

5. Is there a nice how to ? I have no idea if I only need to add a jar, choose other superclasses, remodel our metamodel, refactor our validations, refactor our command behavior with our TransactionalEditingDomain (editingDoman.getCommandStack().execute(SetCommand.create(....))

6. We have sublassed all Commands with our own by using an own ItemProviderRoot ? Is this a problem with CDO or does CDO not affect this ?

7. How long would you think needs one person which no knowledge about CDO to integrate it into a big emf application ?



Thanks four cool answers.
Re: Fits CDO to my needs? [message #895265 is a reply to message #895256] Thu, 12 July 2012 10:06 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6450
Registered: July 2009
Senior Member
Am 12.07.2012 11:34, schrieb Markus Jo:
> Hi,
> we have an EMF- Application.... our problem is, that our model has about 250mb in Memory after garbaging......when
> saving our model the memory pecks up to 800 mb which is too much for our customer.....besides it takes 2 minutes to
> open the model and 2 minutes to save it.
>
> Eike Stepper recommend CDO....but does it fit to what we already have ?
>
> 1. Can we still work with a model-file ?
Yes.

> 2. Does our costum code we have done e.G. in the MetamodelEditor still work ??
You can only find out by trying.

With this bugzilla fixed it would become way easier (basically a noop) to turn a generated editor into a CDO-aware editor:

Make generated editors more flexible
https://bugs.eclipse.org/384036

> 3. Do our custom notifiers and content adapters we added to the model root still work ?
You can only find out by trying.

Generally content adapters can have a bad impact on the characteristics of lazily loaded (i.e. scalable) models. CDO
offers a scalable EContentAdapter.

> 4. AND will we be faster
Lazy loading (i.e. server round-trips, possibly with database access) takes time. You should make a prototype and
measure with and without CDO.

> and reduce our memory needs ?
Most likely. CDO internally uses memory sensitive caches. The less memory you have the slower model traversal will become.

> 10% 50% 90% ?
You should make a prototype and measure with and without CDO.

>
> 5. Is there a nice how to ? I have no idea if I only need to add a jar, choose other superclasses, remodel our
> metamodel, refactor our validations, refactor our command behavior with our TransactionalEditingDomain
> (editingDoman.getCommandStack().execute(SetCommand.create(....))
Here's the wiki: http://wiki.eclipse.org/CDO
User-contributed documentation: http://wiki.eclipse.org/CDO/User_Contributed_Documentation
This may be a good start: http://www.rcp-vision.com/?p=1285&lang=en
The homepage: http://www.eclipse.org/cdo
The oficial documentation: http://www.eclipse.org/cdo/documentation

> 6. We have sublassed all Commands with our own by using an own ItemProviderRoot ? Is this a problem with CDO or does
> CDO not affect this ?
I'm not aware of issues but I'm not a big user of the command framework because it's mostly needed for interactive
applications.

> 7. How long would you think needs one person which no knowledge about CDO to integrate it into a big emf application ?
How smart is that person?

Cheers
/Eike

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


Previous Topic:[Xbase] How to integrate xbase interpreter into another DSL interpreter?
Next Topic:My Model is getting to big...
Goto Forum:
  


Current Time: Tue Nov 12 03:10:07 GMT 2019

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

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

Back to the top