Re: When an update occurs, what happens to the indexes
From: Paul S Randal [MS] (prandal_at_online.microsoft.com)
Date: 02/09/05
- Next message: paulfdgs: "SQL Server process 100% CPU"
- Previous message: Bill Schneider: "procedure for attendance table needed"
- In reply to: fnguy: "Re: When an update occurs, what happens to the indexes"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 9 Feb 2005 10:26:06 -0800
You should also look at the fragmentation state of each of the indexes - its
possible you're seeing lots of page splits which is decreasing the
performance of update operations. See the whitepaper below for more info.
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx
Regards
-- Paul Randal Dev Lead, Microsoft SQL Server Storage Engine This posting is provided "AS IS" with no warranties, and confers no rights. "fnguy" <fnguy@discussions.microsoft.com> wrote in message news:25D9D7D1-E8AD-4AD4-83B9-B6602CDE9E3F@microsoft.com... > Thank you Tibor. > > "Tibor Karaszi" wrote: > > > for each change you have in SET inside your UPDATE, SQL Server have to reflect that in each index > > that is affected. Say you have table with 10 indexes. And you have an UPDATE which in SET changes 5 > > values. then SQL Server will have to "move" those 5 rows to the correct place in the index tree. > > > > -- > > Tibor Karaszi, SQL Server MVP > > http://www.karaszi.com/sqlserver/default.asp > > http://www.solidqualitylearning.com/ > > http://www.sqlug.se/ > > > > > > "fnguy" <fnguy@discussions.microsoft.com> wrote in message > > news:02221714-E030-4D2F-9401-8F7A03882374@microsoft.com... > > > Here's the scenario. Very small table. About 50MB. It has 500 records. > > > The vendor uses this table to retrieve status info about associates as they > > > do work. Thus, Each record is updated every second or so. Thus, we're > > > seeing about 16000 updates in a 60 minute period which appears to be slamming > > > the database. I've run a profiler trace and can see the table easy enough. > > > There's a half dozen indexes including the clustered which is not update. > > > The question is, will dropping any of these indexes really do anything. Say > > > for example I've got the associate last_picked item indexed and this is the > > > field constantly being updated. What happens inside? Is this moved in the > > > index tree? Thanks for all help. > > > > > >
- Next message: paulfdgs: "SQL Server process 100% CPU"
- Previous message: Bill Schneider: "procedure for attendance table needed"
- In reply to: fnguy: "Re: When an update occurs, what happens to the indexes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading