Re: Need Locking Edification
Posted in 1997
Cosmo Lee schrieb: > We're having a problem that when we are running deletes from a table, > users are locked out from completing Selects, and Inserts fail. We > can't quite figure out why this happens . . . > If you want to have maximum concurrency, set the isolation to dirty read for the selects, then at least the selects won't fail, but could show obsolete rows. (SET ISOLATION TO DIRTY READ) Another possible solution would be to set the lock mode to a wait period. Of course this will only be a satisfying solution, if you're deletes don't take too long. (SET LOCK MODE TO WAIT [n]) In any case you'll have to reduce the length of the delete transaction, to leave gaps for the users to work or perform the deletes in a batch-job during the night. Regards, Roland