Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » DeleteCommand is slow
DeleteCommand is slow [message #427219] Fri, 06 February 2009 13:26 Go to next message
exquisitus is currently offline exquisitusFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I'm using EMF 2.3 with a TransactionalEditingDomain.

The bigger my model is, the slower the execution of a command like
DeleteCommand become and specially if elements have many links in the
model.

Would you have some advices to enhance performance because it could freeze
the application for a long time (some minutes) ?
Re: DeleteCommand is slow [message #427225 is a reply to message #427219] Fri, 06 February 2009 18:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Sylvain,

A delete command has to walk the entire model looking for incoming
links. If there's an ECrossReferenceAdapter, that could help find the
inverses more quickly so you might want to specialize the delete
implementation with that approach.


Sylvain Dudoit wrote:
> Hi,
>
> I'm using EMF 2.3 with a TransactionalEditingDomain.
>
> The bigger my model is, the slower the execution of a command like
> DeleteCommand become and specially if elements have many links in the
> model.
>
> Would you have some advices to enhance performance because it could
> freeze the application for a long time (some minutes) ?
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: DeleteCommand is slow [message #427253 is a reply to message #427219] Sun, 08 February 2009 14:40 Go to previous message
Cédric Vidal is currently offline Cédric VidalFriend
Messages: 101
Registered: July 2009
Senior Member
Hi,

Ed will surely correct me if I'm wrong ;), but as far as I've understood
EMF Transaction and the TransactionalEditingDomain, it allows concurrent
access to the model. So you could run your DeleteCommand from a non UI
thread to avoid freezing the UI.

What's more, there is a sample LongRunningReadAction in the EMF
Transaction Examples:
http://tinyurl.com/brnnww

Regards,

Cédric Vidal

Sylvain Dudoit a écrit :
> Hi,
>
> I'm using EMF 2.3 with a TransactionalEditingDomain.
>
> The bigger my model is, the slower the execution of a command like
> DeleteCommand become and specially if elements have many links in the
> model.
>
> Would you have some advices to enhance performance because it could
> freeze the application for a long time (some minutes) ?
>
>
>
Previous Topic:EMF extension
Next Topic:[CDO] Creating a custom OR Mapper
Goto Forum:
  


Current Time: Wed Apr 24 19:31:33 GMT 2024

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

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

Back to the top