SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Indexing issue
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Antonio
Posting Yak Master

United Kingdom
168 Posts

Posted - 03/03/2006 :  09:58:32  Show Profile  Visit Antonio's Homepage
Good afternoon all...

I have a table containing 72 million records. It's taking a while to delete a set of records from the table. The WHERE clause in my delete statement is base on two columns with each having a separate index. Is there any advantage in creating a new index based on the two columns in order to speed up the delete process?

Your advice would be greatly appreciated.

RickD
Slow But Sure Yak Herding Master

United Kingdom
3608 Posts

Posted - 03/03/2006 :  10:26:17  Show Profile
No, indexes will slow your delete down, not speed it up as each index will need to be searched and updated as well as the rows being deleted..
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 03/04/2006 :  01:31:59  Show Profile
See: http://sqlteam.com/forums/topic.asp?TOPIC_ID=62356

Kristen
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000