Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Incremental initialize capability in Teneo
[Teneo] Incremental initialize capability in Teneo [message #79588] Thu, 12 April 2007 10:11 Go to next message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi Martin,

As I mentioned that now I have nearly 14 emf models (which will increase
with time) and initialization takes time. Though I have started using
binary hibernate files, but still time is high.

With one emf model, “overall” time is nearly 1 sec.

As, at the moment I have to set all packages before calling initialize()
on HbDatastore i.e.

hbds.setEPackages(modelPackages); // array of 14 models

So just wondering, if it is possible to add incremental feature, where
initially user supplies only one or few models and once initialized,
then later one can add more models to the same session, and hibernate
mapping file can be broken per model.
I think this concept may be difficult to implement due to hibernate. But
just a thought.
Just wondering about your reactions ;-)

- Parvez
Re: [Teneo] Incremental initialize capability in Teneo [message #79633 is a reply to message #79588] Thu, 12 April 2007 11:46 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Parvez,
It sounds like a nice feature. Do the new epackages refer to the other (already existing) epackages?
If not then it should be possible.

gr. Martin

PC wrote:
> Hi Martin,
>
> As I mentioned that now I have nearly 14 emf models (which will increase
> with time) and initialization takes time. Though I have started using
> binary hibernate files, but still time is high.
>
> With one emf model, “overall” time is nearly 1 sec.
>
> As, at the moment I have to set all packages before calling initialize()
> on HbDatastore i.e.
>
> hbds.setEPackages(modelPackages); // array of 14 models
>
> So just wondering, if it is possible to add incremental feature, where
> initially user supplies only one or few models and once initialized,
> then later one can add more models to the same session, and hibernate
> mapping file can be broken per model.
> I think this concept may be difficult to implement due to hibernate. But
> just a thought.
> Just wondering about your reactions ;-)
>
> - Parvez


--

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: [Teneo] Incremental initialize capability in Teneo [message #79648 is a reply to message #79633] Tue, 10 April 2007 12:06 Go to previous messageGo to next message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi Martin,

Yes, in my case, new packages do refers existing packages (inheritance
or otherwise). But I “think" if initialization can be done in proper
order (user’s responsibility) i.e. if a package refers to existing
package which already has been loaded/initialized then it should not be
a problem or will it be?

- Parvez


Martin Taal wrote:
> Hi Parvez,
> It sounds like a nice feature. Do the new epackages refer to the other
> (already existing) epackages? If not then it should be possible.
>
> gr. Martin
>
> PC wrote:
>> Hi Martin,
>>
>> As I mentioned that now I have nearly 14 emf models (which will
>> increase with time) and initialization takes time. Though I have
>> started using binary hibernate files, but still time is high.
>>
>> With one emf model, “overall” time is nearly 1 sec.
>>
>> As, at the moment I have to set all packages before calling
>> initialize() on HbDatastore i.e.
>>
>> hbds.setEPackages(modelPackages); // array of 14 models
>>
>> So just wondering, if it is possible to add incremental feature, where
>> initially user supplies only one or few models and once initialized,
>> then later one can add more models to the same session, and hibernate
>> mapping file can be broken per model.
>> I think this concept may be difficult to implement due to hibernate.
>> But just a thought.
>> Just wondering about your reactions ;-)
>>
>> - Parvez
>
>
Re: [Teneo] Incremental initialize capability in Teneo [message #81490 is a reply to message #79648] Mon, 30 April 2007 09:18 Go to previous messageGo to next message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi Martin,
Just wondering if you have any further thoughts on it.
Thanks.
Parvez

PC wrote:
> Hi Martin,
>
> Yes, in my case, new packages do refers existing packages (inheritance
> or otherwise). But I “think" if initialization can be done in proper
> order (user’s responsibility) i.e. if a package refers to existing
> package which already has been loaded/initialized then it should not be
> a problem or will it be?
>
> - Parvez
>
>
> Martin Taal wrote:
>> Hi Parvez,
>> It sounds like a nice feature. Do the new epackages refer to the other
>> (already existing) epackages? If not then it should be possible.
>>
>> gr. Martin
>>
>> PC wrote:
>>> Hi Martin,
>>>
>>> As I mentioned that now I have nearly 14 emf models (which will
>>> increase with time) and initialization takes time. Though I have
>>> started using binary hibernate files, but still time is high.
>>>
>>> With one emf model, “overall” time is nearly 1 sec.
>>>
>>> As, at the moment I have to set all packages before calling
>>> initialize() on HbDatastore i.e.
>>>
>>> hbds.setEPackages(modelPackages); // array of 14 models
>>>
>>> So just wondering, if it is possible to add incremental feature,
>>> where initially user supplies only one or few models and once
>>> initialized, then later one can add more models to the same session,
>>> and hibernate mapping file can be broken per model.
>>> I think this concept may be difficult to implement due to hibernate.
>>> But just a thought.
>>> Just wondering about your reactions ;-)
>>>
>>> - Parvez
>>
>>
Re: [Teneo] Incremental initialize capability in Teneo [message #81555 is a reply to message #81490] Mon, 30 April 2007 11:11 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Parvez,
Hmmm yes sorry, I missed your answer.

Which part of the initialization takes most time?

I am not sure if hibernate supports incremental loading, did you test it?
Afaics the challenge is that if there are relations between the current and the new parts of the
model that the parts of the current relational schema have to be updated because foreign keys can be
created at the opposite side of the relation (if A has a list of B's then a foreign key column can
be created in B to refer to A).

gr. martin

PC wrote:
> Hi Martin,
> Just wondering if you have any further thoughts on it.
> Thanks.
> Parvez
>
> PC wrote:
>> Hi Martin,
>>
>> Yes, in my case, new packages do refers existing packages (inheritance
>> or otherwise). But I “think" if initialization can be done in proper
>> order (user’s responsibility) i.e. if a package refers to existing
>> package which already has been loaded/initialized then it should not
>> be a problem or will it be?
>>
>> - Parvez
>>
>>
>> Martin Taal wrote:
>>> Hi Parvez,
>>> It sounds like a nice feature. Do the new epackages refer to the
>>> other (already existing) epackages? If not then it should be possible.
>>>
>>> gr. Martin
>>>
>>> PC wrote:
>>>> Hi Martin,
>>>>
>>>> As I mentioned that now I have nearly 14 emf models (which will
>>>> increase with time) and initialization takes time. Though I have
>>>> started using binary hibernate files, but still time is high.
>>>>
>>>> With one emf model, “overall” time is nearly 1 sec.
>>>>
>>>> As, at the moment I have to set all packages before calling
>>>> initialize() on HbDatastore i.e.
>>>>
>>>> hbds.setEPackages(modelPackages); // array of 14 models
>>>>
>>>> So just wondering, if it is possible to add incremental feature,
>>>> where initially user supplies only one or few models and once
>>>> initialized, then later one can add more models to the same session,
>>>> and hibernate mapping file can be broken per model.
>>>> I think this concept may be difficult to implement due to hibernate.
>>>> But just a thought.
>>>> Just wondering about your reactions ;-)
>>>>
>>>> - Parvez
>>>
>>>


--

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: [Teneo] Incremental initialize capability in Teneo [message #81570 is a reply to message #81555] Mon, 30 April 2007 12:20 Go to previous message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi Martin,

Ok, I see your point regarding work involved in schema updation. Anyway,
I am also sure that hibernate doesn't support incremental build up, so
it won't be possible to implement this because of hibernate.

Thanks.
- Parvez

Martin Taal wrote:
> Hi Parvez,
> Hmmm yes sorry, I missed your answer.
>
> Which part of the initialization takes most time?
>
> I am not sure if hibernate supports incremental loading, did you test it?
> Afaics the challenge is that if there are relations between the current
> and the new parts of the model that the parts of the current relational
> schema have to be updated because foreign keys can be created at the
> opposite side of the relation (if A has a list of B's then a foreign key
> column can be created in B to refer to A).
>
> gr. martin
>
> PC wrote:
>> Hi Martin,
>> Just wondering if you have any further thoughts on it.
>> Thanks.
>> Parvez
>>
>> PC wrote:
>>> Hi Martin,
>>>
>>> Yes, in my case, new packages do refers existing packages
>>> (inheritance or otherwise). But I “think" if initialization can be
>>> done in proper order (user’s responsibility) i.e. if a package refers
>>> to existing package which already has been loaded/initialized then it
>>> should not be a problem or will it be?
>>>
>>> - Parvez
>>>
>>>
>>> Martin Taal wrote:
>>>> Hi Parvez,
>>>> It sounds like a nice feature. Do the new epackages refer to the
>>>> other (already existing) epackages? If not then it should be possible.
>>>>
>>>> gr. Martin
>>>>
>>>> PC wrote:
>>>>> Hi Martin,
>>>>>
>>>>> As I mentioned that now I have nearly 14 emf models (which will
>>>>> increase with time) and initialization takes time. Though I have
>>>>> started using binary hibernate files, but still time is high.
>>>>>
>>>>> With one emf model, “overall” time is nearly 1 sec.
>>>>>
>>>>> As, at the moment I have to set all packages before calling
>>>>> initialize() on HbDatastore i.e.
>>>>>
>>>>> hbds.setEPackages(modelPackages); // array of 14 models
>>>>>
>>>>> So just wondering, if it is possible to add incremental feature,
>>>>> where initially user supplies only one or few models and once
>>>>> initialized, then later one can add more models to the same
>>>>> session, and hibernate mapping file can be broken per model.
>>>>> I think this concept may be difficult to implement due to
>>>>> hibernate. But just a thought.
>>>>> Just wondering about your reactions ;-)
>>>>>
>>>>> - Parvez
>>>>
>>>>
>
>
Re: [Teneo] Incremental initialize capability in Teneo [message #604689 is a reply to message #79588] Thu, 12 April 2007 11:46 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Parvez,
It sounds like a nice feature. Do the new epackages refer to the other (already existing) epackages?
If not then it should be possible.

gr. Martin

PC wrote:
> Hi Martin,
>
> As I mentioned that now I have nearly 14 emf models (which will increase
> with time) and initialization takes time. Though I have started using
> binary hibernate files, but still time is high.
>
> With one emf model, “overall” time is nearly 1 sec.
>
> As, at the moment I have to set all packages before calling initialize()
> on HbDatastore i.e.
>
> hbds.setEPackages(modelPackages); // array of 14 models
>
> So just wondering, if it is possible to add incremental feature, where
> initially user supplies only one or few models and once initialized,
> then later one can add more models to the same session, and hibernate
> mapping file can be broken per model.
> I think this concept may be difficult to implement due to hibernate. But
> just a thought.
> Just wondering about your reactions ;-)
>
> - Parvez


--

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: [Teneo] Incremental initialize capability in Teneo [message #604693 is a reply to message #79633] Tue, 10 April 2007 12:06 Go to previous message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi Martin,

Yes, in my case, new packages do refers existing packages (inheritance
or otherwise). But I “think" if initialization can be done in proper
order (user’s responsibility) i.e. if a package refers to existing
package which already has been loaded/initialized then it should not be
a problem or will it be?

- Parvez


Martin Taal wrote:
> Hi Parvez,
> It sounds like a nice feature. Do the new epackages refer to the other
> (already existing) epackages? If not then it should be possible.
>
> gr. Martin
>
> PC wrote:
>> Hi Martin,
>>
>> As I mentioned that now I have nearly 14 emf models (which will
>> increase with time) and initialization takes time. Though I have
>> started using binary hibernate files, but still time is high.
>>
>> With one emf model, “overall” time is nearly 1 sec.
>>
>> As, at the moment I have to set all packages before calling
>> initialize() on HbDatastore i.e.
>>
>> hbds.setEPackages(modelPackages); // array of 14 models
>>
>> So just wondering, if it is possible to add incremental feature, where
>> initially user supplies only one or few models and once initialized,
>> then later one can add more models to the same session, and hibernate
>> mapping file can be broken per model.
>> I think this concept may be difficult to implement due to hibernate.
>> But just a thought.
>> Just wondering about your reactions ;-)
>>
>> - Parvez
>
>
Re: [Teneo] Incremental initialize capability in Teneo [message #605141 is a reply to message #79648] Mon, 30 April 2007 09:18 Go to previous message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi Martin,
Just wondering if you have any further thoughts on it.
Thanks.
Parvez

PC wrote:
> Hi Martin,
>
> Yes, in my case, new packages do refers existing packages (inheritance
> or otherwise). But I “think" if initialization can be done in proper
> order (user’s responsibility) i.e. if a package refers to existing
> package which already has been loaded/initialized then it should not be
> a problem or will it be?
>
> - Parvez
>
>
> Martin Taal wrote:
>> Hi Parvez,
>> It sounds like a nice feature. Do the new epackages refer to the other
>> (already existing) epackages? If not then it should be possible.
>>
>> gr. Martin
>>
>> PC wrote:
>>> Hi Martin,
>>>
>>> As I mentioned that now I have nearly 14 emf models (which will
>>> increase with time) and initialization takes time. Though I have
>>> started using binary hibernate files, but still time is high.
>>>
>>> With one emf model, “overall” time is nearly 1 sec.
>>>
>>> As, at the moment I have to set all packages before calling
>>> initialize() on HbDatastore i.e.
>>>
>>> hbds.setEPackages(modelPackages); // array of 14 models
>>>
>>> So just wondering, if it is possible to add incremental feature,
>>> where initially user supplies only one or few models and once
>>> initialized, then later one can add more models to the same session,
>>> and hibernate mapping file can be broken per model.
>>> I think this concept may be difficult to implement due to hibernate.
>>> But just a thought.
>>> Just wondering about your reactions ;-)
>>>
>>> - Parvez
>>
>>
Re: [Teneo] Incremental initialize capability in Teneo [message #605157 is a reply to message #81490] Mon, 30 April 2007 11:11 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Parvez,
Hmmm yes sorry, I missed your answer.

Which part of the initialization takes most time?

I am not sure if hibernate supports incremental loading, did you test it?
Afaics the challenge is that if there are relations between the current and the new parts of the
model that the parts of the current relational schema have to be updated because foreign keys can be
created at the opposite side of the relation (if A has a list of B's then a foreign key column can
be created in B to refer to A).

gr. martin

PC wrote:
> Hi Martin,
> Just wondering if you have any further thoughts on it.
> Thanks.
> Parvez
>
> PC wrote:
>> Hi Martin,
>>
>> Yes, in my case, new packages do refers existing packages (inheritance
>> or otherwise). But I “think" if initialization can be done in proper
>> order (user’s responsibility) i.e. if a package refers to existing
>> package which already has been loaded/initialized then it should not
>> be a problem or will it be?
>>
>> - Parvez
>>
>>
>> Martin Taal wrote:
>>> Hi Parvez,
>>> It sounds like a nice feature. Do the new epackages refer to the
>>> other (already existing) epackages? If not then it should be possible.
>>>
>>> gr. Martin
>>>
>>> PC wrote:
>>>> Hi Martin,
>>>>
>>>> As I mentioned that now I have nearly 14 emf models (which will
>>>> increase with time) and initialization takes time. Though I have
>>>> started using binary hibernate files, but still time is high.
>>>>
>>>> With one emf model, “overall” time is nearly 1 sec.
>>>>
>>>> As, at the moment I have to set all packages before calling
>>>> initialize() on HbDatastore i.e.
>>>>
>>>> hbds.setEPackages(modelPackages); // array of 14 models
>>>>
>>>> So just wondering, if it is possible to add incremental feature,
>>>> where initially user supplies only one or few models and once
>>>> initialized, then later one can add more models to the same session,
>>>> and hibernate mapping file can be broken per model.
>>>> I think this concept may be difficult to implement due to hibernate.
>>>> But just a thought.
>>>> Just wondering about your reactions ;-)
>>>>
>>>> - Parvez
>>>
>>>


--

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: [Teneo] Incremental initialize capability in Teneo [message #605159 is a reply to message #81555] Mon, 30 April 2007 12:20 Go to previous message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi Martin,

Ok, I see your point regarding work involved in schema updation. Anyway,
I am also sure that hibernate doesn't support incremental build up, so
it won't be possible to implement this because of hibernate.

Thanks.
- Parvez

Martin Taal wrote:
> Hi Parvez,
> Hmmm yes sorry, I missed your answer.
>
> Which part of the initialization takes most time?
>
> I am not sure if hibernate supports incremental loading, did you test it?
> Afaics the challenge is that if there are relations between the current
> and the new parts of the model that the parts of the current relational
> schema have to be updated because foreign keys can be created at the
> opposite side of the relation (if A has a list of B's then a foreign key
> column can be created in B to refer to A).
>
> gr. martin
>
> PC wrote:
>> Hi Martin,
>> Just wondering if you have any further thoughts on it.
>> Thanks.
>> Parvez
>>
>> PC wrote:
>>> Hi Martin,
>>>
>>> Yes, in my case, new packages do refers existing packages
>>> (inheritance or otherwise). But I “think" if initialization can be
>>> done in proper order (user’s responsibility) i.e. if a package refers
>>> to existing package which already has been loaded/initialized then it
>>> should not be a problem or will it be?
>>>
>>> - Parvez
>>>
>>>
>>> Martin Taal wrote:
>>>> Hi Parvez,
>>>> It sounds like a nice feature. Do the new epackages refer to the
>>>> other (already existing) epackages? If not then it should be possible.
>>>>
>>>> gr. Martin
>>>>
>>>> PC wrote:
>>>>> Hi Martin,
>>>>>
>>>>> As I mentioned that now I have nearly 14 emf models (which will
>>>>> increase with time) and initialization takes time. Though I have
>>>>> started using binary hibernate files, but still time is high.
>>>>>
>>>>> With one emf model, “overall” time is nearly 1 sec.
>>>>>
>>>>> As, at the moment I have to set all packages before calling
>>>>> initialize() on HbDatastore i.e.
>>>>>
>>>>> hbds.setEPackages(modelPackages); // array of 14 models
>>>>>
>>>>> So just wondering, if it is possible to add incremental feature,
>>>>> where initially user supplies only one or few models and once
>>>>> initialized, then later one can add more models to the same
>>>>> session, and hibernate mapping file can be broken per model.
>>>>> I think this concept may be difficult to implement due to
>>>>> hibernate. But just a thought.
>>>>> Just wondering about your reactions ;-)
>>>>>
>>>>> - Parvez
>>>>
>>>>
>
>
Previous Topic:[Teneo] memory consumption keeps building up
Next Topic:[Teneo] GMF Editors
Goto Forum:
  


Current Time: Fri Apr 19 08:54:51 GMT 2024

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

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

Back to the top