Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO][0.8.0] TypeManager
[CDO][0.8.0] TypeManager [message #105008] Fri, 21 December 2007 03:13 Go to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Eike,

If we did disableLegacyObjects... Do we still need TypeManager ?

Everywhere the code we do the following :

repository.getTypeManager().registerObjectType(..).

But in fact I never use it.

Should We desactivate it in the case where disableLegacyObject is true ?

Also, accumulating values like TypeManager... we will run out of memory.

Thank you
Re: [CDO][0.8.0] TypeManager [message #105011 is a reply to message #105008] Fri, 21 December 2007 08:06 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi Simon,

This is likely to be changed (removed) in the context of an existing
Bugzilla. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=213420#c5

"Particularly the HorizontalMappingStrategy doesn't require (by definition) a
central object table which could be used for id -> type lookups. When I
implemented that I decided to let the repository framework (TypeManager) help
those stores with hasEfficientTypeLookup()==false. It turned out that it was
not a good idea. I'll move this burden back to the store. There I'll provide a
central lookup table (cache) that is asynchronously fed through a QueueWorker
thread. Each MappingStrategy is prepared anyway to handle cache misses by
looking up the id withing the mapped object tables. This can be slow for
horizontal mappings and it seems to happen regularly in the current scenario."

Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j



Simon McDuff schrieb:
> Hi Eike,
>
> If we did disableLegacyObjects... Do we still need TypeManager ?
>
> Everywhere the code we do the following :
>
> repository.getTypeManager().registerObjectType(..).
>
> But in fact I never use it.
>
> Should We desactivate it in the case where disableLegacyObject is true ?
>
> Also, accumulating values like TypeManager... we will run out of memory.
>
> Thank you
>
>
>
Re: [CDO][0.8.0] TypeManager [message #612948 is a reply to message #105008] Fri, 21 December 2007 08:06 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Simon,

This is likely to be changed (removed) in the context of an existing
Bugzilla. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=213420#c5

"Particularly the HorizontalMappingStrategy doesn't require (by definition) a
central object table which could be used for id -> type lookups. When I
implemented that I decided to let the repository framework (TypeManager) help
those stores with hasEfficientTypeLookup()==false. It turned out that it was
not a good idea. I'll move this burden back to the store. There I'll provide a
central lookup table (cache) that is asynchronously fed through a QueueWorker
thread. Each MappingStrategy is prepared anyway to handle cache misses by
looking up the id withing the mapped object tables. This can be slow for
horizontal mappings and it seems to happen regularly in the current scenario."

Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j



Simon McDuff schrieb:
> Hi Eike,
>
> If we did disableLegacyObjects... Do we still need TypeManager ?
>
> Everywhere the code we do the following :
>
> repository.getTypeManager().registerObjectType(..).
>
> But in fact I never use it.
>
> Should We desactivate it in the case where disableLegacyObject is true ?
>
> Also, accumulating values like TypeManager... we will run out of memory.
>
> Thank you
>
>
>


Previous Topic:[Net4J] Bluetooth and/or comm port connectivity
Next Topic:registering a time provider
Goto Forum:
  


Current Time: Tue Apr 16 21:59:56 GMT 2024

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

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

Back to the top