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 2005 Forums
 Transact-SQL (2005)
 Indexes Question

Author  Topic 

nhess80
Yak Posting Veteran

83 Posts

Posted - 2009-09-29 : 12:22:02
When doing a large update on my table; let’s say over 3 million rows, should I disable the indexes to make it faster? As of right now I’m on hour 3 of an update.

Thanks for the advise

Nick

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-09-29 : 12:51:52
yup. that would be better. remember that each update might have to update the index info also so it might be better to disable and reindex after
Go to Top of Page

nhess80
Yak Posting Veteran

83 Posts

Posted - 2009-09-29 : 18:06:49
When I tried to disable the index and do my update I received this message and was unable to do my sql update query.

"Msg 8655, Level 16, State 1, Line 3
The query processor is unable to produce a plan because the index 'GroupIndex' on table or view 'CDRS' is disabled."

quote:
Originally posted by visakh16

yup. that would be better. remember that each update might have to update the index info also so it might be better to disable and reindex after

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-09-30 : 00:00:15
try dropping and recreating
Go to Top of Page
   

- Advertisement -