x

Index creation time

I have a table with non-clustered index e.g. Index1 on Column1, Column2 & Column3

Now i want to create a clustered index2 on column1.

Index creation time point of view, does it make any difference if the column is being used by other index?

more ▼

asked Feb 22, 2010 at 11:03 AM in Default

avatar image

kardile
301 14 14 16

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

In direct answer to your question, no.

But creating a clustered index will physically order the data on the disk, so will take more time than creating a non-clustered index.

more ▼

answered Feb 22, 2010 at 11:37 AM

avatar image

Matt Whitfield ♦♦
29.5k 62 66 88

(comments are locked)
10|1200 characters needed characters left

Based on your first index; Column1, Column2, Column3, I'd consider the second index on Column1 to be redundent. Of cousre, there is always that "It Depends" when it comes to any development.

more ▼

answered Feb 24, 2010 at 03:25 PM

avatar image

Lynn Pettis
275 2 5

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x145

asked: Feb 22, 2010 at 11:03 AM

Seen: 1690 times

Last Updated: Feb 22, 2010 at 11:03 AM

Copyright 2016 Redgate Software. Privacy Policy