A question on locking

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

A question on locking

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:04 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: A question on locking

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:04 pm

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 24 guests