March 1, 2023 at 7:35 pm
I don't understand why you would have indexes (apart from maybe a clustered one) on a table with only a few rows?
I wasn't sure about it. They were there from past 5-6 years even before I started supporting this app from past 2 years. So, no idea. However, it is a good point. May be we can disable those and see how things work out.
Again, thanks everyone for the support without judging. Thanks.
March 1, 2023 at 7:51 pm
RCSI is enabled for this database. However, writers are blocking writers. INSERTs and DELETE's,
Sometimes, even a good healthy dose of magic pixie dust can't break through a mountain of poop. 😀 Why on Earth would the 3rd part try to manage locks on tables if RCSI is present? It makes no sense.
There's not much we can do to help because it's "turd party" stuff 😀 They are the ones that need to fix this and, unfortunately, it means that you have to prove to them that this problem is all them.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2023 at 7:54 pm
p.s. SQLProfiler isn't "dangerous". People that don't know what they're doing with either SQLProfile or Extended Events are what's dangerous. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2023 at 9:44 pm
Again, thanks everyone for the support without judging. Thanks.
Heh... ah... but we ARE judging. 😀 The third party code and database design sucks. 😀 😀 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2023 at 10:55 am
Can you give some idea(s) to prove that this is kind of a "Hot Spot" contention scenario.
A bit of a shot in the dark but do you have a lot of PAGELATCH_EX waits?
The following has some scripts and potential mitigations:
If PAGELATCH_EX is a problem, and given the ghost cleanup task also seems to cause blocking, it might be an idea to make dbo.Applied_lock an in memory table. If there is no need to retain the rows of this table between server restarts it could have a durability of SCHEMA_ONLY which would be even better.
Something like this might provide the developers with a quick short term fix to their poor design pattern giving more time for the code to be refactored.
Viewing 5 posts - 31 through 34 (of 34 total)
You must be logged in to reply to this topic. Login to reply