[Zope-CMF] Re: creator and getOwner

Florent Guillaume fg at nuxeo.com
Mon Nov 8 13:35:36 EST 2004


yuppie wrote:
> Florent Guillaume wrote:
> 
>> In DublinCore, Creator (listCreators in recent CMFs) calls getOwner 
>> just to get its id. This can be very costly because it goes all the 
>> way to the user folder to get the user object (which can be expensive 
>> to compute if it comes from LDAP, for intance), to finally just call 
>> getId() on it.
>>
>> Anyone opposed to basically calling getOwnerTuple()[1] instead ?
> 
> 
> Well. CMF 1.5 calls getOwner only once per item to migrate old content. 
> Migrated and new content items don't depend on getOwner. So I doubt it's 
> worth the effort, but please go ahead if you think so.

Hm right, so it's not as bad as I thought. Even though, we have a 
customer whose LDAP died because a site was fully recataloged, so I 
guess it would have died also during migration.

I'll go ahead and do the change.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope-CMF mailing list