Quantcast
Channel: Answers for "How to avoid deadlocks and "ghost reads" on a very-high concurrent process ?"
Browsing index pages (8 articles)
↧

Answer by Jeff Moden

I had a similar situation with such a "sequence" table at my old job. The "GetNextID" proc similar to both of yours was causing an average of 640 deadlocks per day with daily spikes to more than 4,000....

View Article


Answer by Matt Whitfield

+1 for the question and +1 for grant - but have you considered using a slightly different method for logging? It's pretty unlikely that you are going to be logging many separate category and counter...

View Article


Answer by Kev Riley

Definitely agree with Grant's comments.I had a similar situation once with high-concurrency on a session data table, and after much trial and error with isolation levels, try/catch blocks etc. the...

View Article

Answer by Grant Fritchey

If anything, snapshot isolation might make this have more problems, not fewer, although you're unlikely to hit as many deadlocks. Absolutely you should implement TRY/CATCH for the deadlocks. You can...

View Article

Answer by Jeff Moden

I had a similar situation with such a "sequence" table at my old job. The "GetNextID" proc similar to both of yours was causing an average of 640 deadlocks per day with daily spikes to more than 4,000....

View Article


Answer by Matt Whitfield

+1 for the question and +1 for grant - but have you considered using a slightly different method for logging? It's pretty unlikely that you are going to be logging many separate category and counter...

View Article

Answer by Kev Riley

Definitely agree with Grant's comments.I had a similar situation once with high-concurrency on a session data table, and after much trial and error with isolation levels, try/catch blocks etc. the...

View Article

Answer by Grant Fritchey

If anything, snapshot isolation might make this have more problems, not fewer, although you're unlikely to hit as many deadlocks. Absolutely you should implement TRY/CATCH for the deadlocks. You can...

View Article

Browsing index pages (8 articles)


Latest Images