I have a table CurrentStatusin my database (merge replication subscription database) ColumnsStatusID {Primary Key + Clustered Index}, StatusName, StatusDate, UserID,CreatedDate, ModifiedDate, ModifiedBy, AllowDelete,AllowUpdate
CurrentStatus table as 26,000 rows
updates and deletes in this table suddenly take too much time, say, from 1 minute 30 seconds to 5 minutes.
The following is a request to execute a minute.
update StatusMaster set StatusName='OK' where StatusID = 22
There were 5 indexes in the table earlier (even then the query was executed quickly). Now that update / deletion requests fail, I deleted all indexes and saved only two indexes 1) Cluster pointer to StatusID 2) Replication index in rowguid column, which is a unique non-clustered index created automatically by replication.
As I backup and restore the database, the queries in the same table work fine.
Another thing is that I have a complex query running every 2 minutes from about 20 computers on the server.
What makes these requests consume so much time to complete?
Click here to complete the plan.
source
share