On 12/10/09 08:19 -0700, Salim wrote:
> 
> Thanks Cédric for your response.
> 
> > if it is stored, it is no more a function field :-)
> Yes i agree but i'd like to search records with that field whitch is
> not possible if a function field (depending on my experiences),

It is possible to search on a function field if you define the search
function.

> moreover sometimes i like to store in the database to do some complexe
> reporting attacking directly the database.

Why attacking directly the database? Use the reports, you will have any
problems.

> > And finally, I find it is simpler to create a real field and update it when
> > needed by overriding the create and write functions of each models that are
> > linked to the field computation.
> It seems interesting ! do you have a example of a sutch
> implementation. I have tried to update a real filed with function
> field but the data do not synchronize correctly.

No, because we try to always use function to not duplicate data.


-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpB1qLV30Drp.pgp
Description: PGP signature

Reply via email to