Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7184065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:07:27+00:00 2026-05-28T18:07:27+00:00

I have a table CurrentStatus in my database (subscription database in a merge replication)

  • 0

I have a table CurrentStatus in my database (subscription database in a merge replication)
Columns are StatusID {Primary Key + Clustered Index}, StatusName, StatusDate, UserID,CreatedDate, ModifiedDate, ModifiedBy, AllowDelete,AllowUpdate

CurrentStatus table as 26000 rows

updates and deletes on this table are suddenly taking too much time say 1 min 30 sec to even 5 min.

Below query is taking over a minute to execute.

update StatusMaster set StatusName='OK' where StatusID = 22

There were previously 5 indexes on table (even then the query used to execute fast.)
Now as the update/delete queries are not executing, i have deleted all indexes and kept only two indexes
1) Clustered Index on StatusID
2) Replication index on rowguid column which is an unique nonclustered index created by replication automatically.

Whn i take backup and restore the database, the queries on same table run fine.

One more thing is that i have complex query running every 2 mins from around 20 machines on server.

What is causing this queries to consume so much time to execute?

Click here for Execution plan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:07:28+00:00Added an answer on May 28, 2026 at 6:07 pm

    I recommend that you update your statistics via the UPDATE STATISTICS command, e.g.:

    UPDATE STATISTICS StatusMaster 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have table with a unique auto-incremental primary key. Over time, entries may be
I have table A in Oracle that has a primary key (id). I need
I have two tables : create table CurrentDay ( ID int identity primary key,
I have table named A with column B defined int not null Primary Key
I have table with 3 columns A B C. I want to select *
I have table in data base name train delay, with columns train number(int), DelayTime(int),
I have table Players with columns: ID Name Points What is most efficient way
I have table with pageId, parentPageId, title columns. Is there a way to return
I have table 'pages' in my database. I have noticed that cakePHp has a
I have table A(id). I need to create table B(id) add a foreign key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.