[OGo-Developer] big resource hog in SoObject
Wolfgang Sourdeau
developer@opengroupware.org
Fri, 20 Jul 2007 16:05:48 -0400
Hi Helge and all,
In SOGo, most data objects implement a "lookupName:inContext:acquire:"
method. This method first calls its super equivalent in the case a web
method with the required name would exist.
The problem is that the super method also invokes
"toOneRelationShipKeys", to make sure the name is available.
It's ok for small directories but not for LDAP directories with 1000s
of entries. Because each time a contact card is requested, all entries
are scanned again, while it should be the directory controller object
to check whether the name is available or not...
So my request would be to remove that part between line 138 and 144 of
SoObject.m.
Would that be reasonable?
Wolfgang