Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Indexes

Author  Topic 

REEPER
Yak Posting Veteran

53 Posts

Posted - 2006-09-21 : 16:25:29
How do having multiple table indexes affect system performance? Even if those indexes are not used?

MCP, MCSD

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-09-21 : 16:34:04
It impacts DML operations.

Tara Kizer
Go to Top of Page

REEPER
Yak Posting Veteran

53 Posts

Posted - 2006-09-21 : 16:36:16
What does that mean and how does it affect performance?

MCP, MCSD
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-09-21 : 16:37:59
DML is data manipulation language. It impacts performance as the index has to be updated if it is impacted by the DML operation.

Tara Kizer
Go to Top of Page

REEPER
Yak Posting Veteran

53 Posts

Posted - 2006-09-22 : 08:51:58
So if I have secondary indexes that are not being used on about 10 large tables what kind of performance gain could be seen if I erase them?

MCP, MCSD
Go to Top of Page

mr_mist
Grunnio

1870 Posts

Posted - 2006-09-22 : 09:16:36
Presumably your MCP, MCSD is not in SQL Server database administration, then?

The performance benefits or otherwise that you may or may not realise from removing or adding indexes will be entirely dependant on your application and what magnitude and sort of processing happens on your database.

It would be entirely pointless for us to sit here with no knowledge of your system and give you some kind of numeric value of performance increase you'd see.

You'd have to test it yourself to get real data.

-------
Moo. :)
Go to Top of Page

REEPER
Yak Posting Veteran

53 Posts

Posted - 2006-09-22 : 13:36:02
You are correct the .NET MCSD is mostly C# based with a sprinkle of Anaysis and requirments mixed in.

I'm just asking a general question and am having a hard time getting a general answer. I understand adding indexes can increase perfomrance significantly if used. I'm just asking the question - What if they are not used? Not asking the question from an application standpoint just from the database server level - nothing more.

MCP, MCSD
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-09-22 : 13:42:43
If the indexes are not being used, then they should be dropped so that they do not negatively impact performance on DML operations. We can't measure what kind of impact it has when they exist and when they do not exist. That measurement can be taken during testing.

Tara Kizer
Go to Top of Page

REEPER
Yak Posting Veteran

53 Posts

Posted - 2006-09-22 : 13:48:31
Just out of curiosity is a relative to anything like table size, or specific kind of sql call?



MCP, MCSD
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-09-22 : 13:53:56
The performance impact will be related to how much data needs to be updated in the index. It also will be related to the width of the index.

Tara Kizer
Go to Top of Page

REEPER
Yak Posting Veteran

53 Posts

Posted - 2006-09-22 : 15:14:06
Thats exactly the answer I was looking for Tara - I just wasn't smart enough to ask the right question.

thx!

MCP, MCSD
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-09-22 : 16:25:52
Indexes make SELECT Operations faster but slows down DELETES, INSERTS and UPDATES only because the Engine needs to manage the indexes as well....

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2006-09-23 : 16:32:15
Although, they can decrease SELECT operations sometimes. IF you have redundant indexes, especially if you have the same columns covered by a composite and single-column index. Theoretically, the optimizer should just always magically pick the best index. Alas, theory is just that.....theory.



MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

mr_mist
Grunnio

1870 Posts

Posted - 2006-09-25 : 05:29:08
Yep. That particularly can happen if there's a large number of indexes. The optimizer can stop looking for a good index to use once it gets bored of trying a few and use an non-optimal one instead.

-------
Moo. :)
Go to Top of Page
   

- Advertisement -