Page 1 of 1

A question on locking

Posted: Fri Aug 07, 2009 12:04 pm
by ConvertFromOldNGs
by MichaelHill >> Wed, 24 Oct 2001 21:18:29 GMT

Morning All,

I have a question with regards to locking.

I have inheritied a system when predominantly using 'foreach' as it's method for tranversing though collections. This system has a extremely high proportion of incidences of locking problems (e.g. 1027, 1081, etc). I have read that using a 'foreach' locks the object that is being used.

My question is would I benefit from changing these from using 'foreach' to say using 'iterator' or some other form of traversing through?

Michael Hill
Gallagher Group Ltd

Re: A question on locking

Posted: Fri Aug 07, 2009 12:04 pm
by ConvertFromOldNGs
by barryg >> Fri, 26 Oct 2001 1:56:40 GMT

The performance Tips white paper at

http://news.jadeworld.com/developers/tpapers.htm

has some good practices on this sort of thing.

Barry.