Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » how to paging big model and still reserve EMF.Edit command framework?
how to paging big model and still reserve EMF.Edit command framework? [message #82506] Tue, 08 May 2007 10:37 Go to next message
Anthony Lee is currently offline Anthony LeeFriend
Messages: 114
Registered: July 2009
Senior Member
Hi,

My project is based on EMF . It make use of EMF.Edit command
framework.

As the model file is too large, I want to use Teneo to promote the
performance,for example , paging the records , sort records in db, etc.

By customed loadUsingDefinedQueries() method, paging function is
implemented.

But in my Interceptor's onLoad() output, I found out that each time
the RemoveCommand is being created, all records will be loaded.

After I use my customed PersistableEList to override contains
()/containsAll()/listIterator(), the extra load disappear.

But some delegate***() still load records from db...

In fact, all the content appear in UI has been in resource , but the
object's persistableEList's delegate don't know.


Has anyone solved this kind of issue?

Any idea would be appriciated.


Anthony
Re: how to paging big model and still reserve EMF.Edit command framework? [message #83675 is a reply to message #82506] Wed, 16 May 2007 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Anthony,

The delete command needs to look for any other references to the object
being deleted to also clean those up. I suppose that's what's causing
all the loads. I'm not sure how to avoid that. I don't know Teneo well
enough to answer that part of the question...


Anthony Lee wrote:
> Hi,
>
> My project is based on EMF . It make use of EMF.Edit command
> framework.
>
> As the model file is too large, I want to use Teneo to promote the
> performance,for example , paging the records , sort records in db, etc.
>
> By customed loadUsingDefinedQueries() method, paging function is
> implemented.
>
> But in my Interceptor's onLoad() output, I found out that each time
> the RemoveCommand is being created, all records will be loaded.
>
> After I use my customed PersistableEList to override contains
> ()/containsAll()/listIterator(), the extra load disappear.
>
> But some delegate***() still load records from db...
>
> In fact, all the content appear in UI has been in resource , but the
> object's persistableEList's delegate don't know.
>
>
> Has anyone solved this kind of issue?
>
> Any idea would be appriciated.
>
>
> Anthony
>
>
>
Re: how to paging big model and still reserve EMF.Edit command framework? [message #83704 is a reply to message #83675] Wed, 16 May 2007 12:33 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
As an add-on to Ed's reply. The HbDataStore offers methods to efficiently retrieve all the referers
to a certain object. Based on the ecore-model it will only fire the queries required to retrieve all
the referers for that specific type, so you won't require a full-database scan for delete constraint
checking.
I have not tried to integrate this functionality with the EMF.Edit(or) framework but it could be
worth a try.

gr. Martin

Ed Merks wrote:
> Anthony,
>
> The delete command needs to look for any other references to the object
> being deleted to also clean those up. I suppose that's what's causing
> all the loads. I'm not sure how to avoid that. I don't know Teneo well
> enough to answer that part of the question...
>
>
> Anthony Lee wrote:
>> Hi,
>> My project is based on EMF . It make use of EMF.Edit command framework.
>>
>> As the model file is too large, I want to use Teneo to promote the
>> performance,for example , paging the records , sort records in db, etc.
>>
>> By customed loadUsingDefinedQueries() method, paging function is
>> implemented.
>>
>> But in my Interceptor's onLoad() output, I found out that each time
>> the RemoveCommand is being created, all records will be loaded.
>> After I use my customed PersistableEList to override contains
>> ()/containsAll()/listIterator(), the extra load disappear.
>>
>> But some delegate***() still load records from db...
>>
>> In fact, all the content appear in UI has been in resource , but the
>> object's persistableEList's delegate don't know.
>>
>> Has anyone solved this kind of issue?
>>
>> Any idea would be appriciated.
>>
>>
>> Anthony


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: how to paging big model and still reserve EMF.Edit command framework? [message #606708 is a reply to message #82506] Wed, 16 May 2007 12:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Anthony,

The delete command needs to look for any other references to the object
being deleted to also clean those up. I suppose that's what's causing
all the loads. I'm not sure how to avoid that. I don't know Teneo well
enough to answer that part of the question...


Anthony Lee wrote:
> Hi,
>
> My project is based on EMF . It make use of EMF.Edit command
> framework.
>
> As the model file is too large, I want to use Teneo to promote the
> performance,for example , paging the records , sort records in db, etc.
>
> By customed loadUsingDefinedQueries() method, paging function is
> implemented.
>
> But in my Interceptor's onLoad() output, I found out that each time
> the RemoveCommand is being created, all records will be loaded.
>
> After I use my customed PersistableEList to override contains
> ()/containsAll()/listIterator(), the extra load disappear.
>
> But some delegate***() still load records from db...
>
> In fact, all the content appear in UI has been in resource , but the
> object's persistableEList's delegate don't know.
>
>
> Has anyone solved this kind of issue?
>
> Any idea would be appriciated.
>
>
> Anthony
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to paging big model and still reserve EMF.Edit command framework? [message #606710 is a reply to message #83675] Wed, 16 May 2007 12:33 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
As an add-on to Ed's reply. The HbDataStore offers methods to efficiently retrieve all the referers
to a certain object. Based on the ecore-model it will only fire the queries required to retrieve all
the referers for that specific type, so you won't require a full-database scan for delete constraint
checking.
I have not tried to integrate this functionality with the EMF.Edit(or) framework but it could be
worth a try.

gr. Martin

Ed Merks wrote:
> Anthony,
>
> The delete command needs to look for any other references to the object
> being deleted to also clean those up. I suppose that's what's causing
> all the loads. I'm not sure how to avoid that. I don't know Teneo well
> enough to answer that part of the question...
>
>
> Anthony Lee wrote:
>> Hi,
>> My project is based on EMF . It make use of EMF.Edit command framework.
>>
>> As the model file is too large, I want to use Teneo to promote the
>> performance,for example , paging the records , sort records in db, etc.
>>
>> By customed loadUsingDefinedQueries() method, paging function is
>> implemented.
>>
>> But in my Interceptor's onLoad() output, I found out that each time
>> the RemoveCommand is being created, all records will be loaded.
>> After I use my customed PersistableEList to override contains
>> ()/containsAll()/listIterator(), the extra load disappear.
>>
>> But some delegate***() still load records from db...
>>
>> In fact, all the content appear in UI has been in resource , but the
>> object's persistableEList's delegate don't know.
>>
>> Has anyone solved this kind of issue?
>>
>> Any idea would be appriciated.
>>
>>
>> Anthony


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:[Teneo] Performance creating a DB
Next Topic:cascaded deletes
Goto Forum:
  


Current Time: Tue Apr 23 12:35:58 GMT 2024

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

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

Back to the top