On 2016-01-05 12:36, Jon Levy wrote:
> 
> 
> On Monday, January 4, 2016 at 3:15:04 PM UTC-5, Cédric Krier wrote:
> >
> > At the first call Tryton 
> > will compute the Function fields for the all 1000 records. Then if you 
> > call write/create (or save) the local cache will be cleared. And so on 
> > the next call to the method, Tryton will compute again the Function 
> > fields for the 999 records and so on.
> 
>  
> Thank you, that makes sense.  So I guess I can think of each records 
> retrieved from a search as carrying along with it all of the other records 
> retrieved, such that a field retrieved on one gets retrieved on all--which 
> is a good optimization for most cases, but helpful to know that I can avoid 
> by replacing them with individually instantiated instances.

It is a bad idea to individually instantiate instances. It is your
design that you should review to work properly with bunch of records.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20160105231817.GN11765%40tetsuo.wifi.b2ck.com.

Reply via email to