Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updates affecting indexes

Status
Not open for further replies.

jepatte

Programmer
Jul 4, 2005
75
US
I have puzzled by this for a week now. I have one SQL database that has been doing great. I have a table that has 4 indexes on it and the speed is top notch.

In a completely separate database on this server, I have been doing mass updates. ie. UPDATE t1 SET f2 = 'Y' WHERE f2 = 'X' etc. These updates have been takigna while. When they are done though, the indexes in the table above I mentioned in a separate database slow to a crawl.

Then I have to reindex them, and now they are fine again. Why would me updating one database table affect an index in a different database table. Again, I can see speed slowing down DURING the update, but after its done, the speed is still crawling.
 
Try updating statistics after your update.

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
nevermind I see how to update stats, but I cant afford to do this to all tables everytime I update a different table. This is crazy?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top