[CPS-devel] schema write expression

Georges Racinet gracinet at nuxeo.com
Wed Sep 6 11:22:47 CEST 2006


On Sep 6, 2006, at 2:06 AM, Julien Anguenot wrote:

> Hi,
>
> Armand LEROUX wrote:
>> I am running basic performance tests on document creation factory
>> because document creation takes too much time.
>>
>> Here is the famous point :
>>
>> * My schema contains write expression. I whish to disable write
>> expression evaluation, measure creation time and compare them.
>
> How many wrote expressions and doing what ? Why do you suspect them to
> be responsible for that ?
>
>> Write expression are stored in CPSFields subclasses (CPSStringField,
>> CPSListField...)
>>
>> "I think write expression evaluations are evaluated by  
>> Datamodel.py". I
>> don't know yet what to alter to disable the write-expression  
>> contained
>> in portal_schemas/my_schema/myField:write-expression
>>
>> Which file should I alter to disable write expression calculus ?
>>
>> Can somebody point me toward relevant links ?

>
> Field.py : processValueBeforeWrite()

If I were you, I'd use ZopeProfiler for this (google it)
it's easy to filter results to know how much time is spent in this  
method since you've got its name now :)
Besides, you can analyze your perf problem way outside of write  
exprs, of course

Cheers,

---------
Georges Racinet                        Nuxeo SAS
gracinet at nuxeo.com                http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73




More information about the cps-devel mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.