[VSDK Macho/PB] 1.9.6

Totte Alm totte at code66.se
Tue Jan 28 19:05:24 CST 2003


tisdagen den 28 januari 2003 kl 18.39 skrev Ruslan Zasukhin:

> Problem with performance is that you need do BaseObject.goto( recID )
> And this load all fields of this BaseObject, but you want update only  
> one
> field ?
>
> Totte, in fact cursor.Update() will do the same -- make full record to  
> be
> current. This is needed in case you update a field which also is used  
> in
> some BaseObject. So to correctly update this method, it needs set  
> correct
> values for other fields also.

It still was 3 times faster to iterate using cursor and then update  
using baseobject GoToRecord than doing it ONLY with baseobject  
iteration, so its OK.

// Totte
>
------------------------------------------------------------------------ 
----------------------
Bugs don't die - they just go to Redmond to regroup.



More information about the Valentina mailing list