[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

What are the consequences of putting a NON CLUSTERED index on a PK column?

Posted on 2009-12-18
1
Medium Priority
?
324 Views
Last Modified: 2012-05-08
I have a table that gets HUGE (250 MILLION records), the only thing that happens to this table is INSERT and SELECT.

Some of the searches by date appear to be slow, so we tossed around the idea of putting a NON CLUSTERED index on the data column. The date column is part of a composite key. RID+INSDATE is the primary key, so I know the insert date is already indexed.

Any suggestions why I should or should not?

Thanks!
0
Comment
Question by:sqlagent007
1 Comment
 
LVL 26

Accepted Solution

by:
tigin44 earned 2000 total points
ID: 26084421
RID+INSDATE composite primary key should be clustered indexed..  You may define a non clustered index on INSDATE column too.. Thet will increase the performance of the queries that are based  column in a huge table like yours...t
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question