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

Posted on 2009-12-18
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?

Question by:sqlagent007
    1 Comment
    LVL 26

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
    Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now