• raj.prabhu001 (8/3/2014)


    Hello,

    I have a fact table which has six field now and I have created non clustered index on all fields.

    It will also have more fields later with millions of records .

    Please suggest me my indexing will help on this table or should I create index in some other way to optimise performance .

    Thanks

    Determining which indexes are going to be of use is primarily done by understanding the queries that are going to be run against the data. You can't do one without the other. But, the most important decision you have to make is where to place the clustered index. Take your time to understand both your storage needs and your query needs. Generally, the best place to put the clustered index is on the most common access path to the data. This can be the primary key, but it won't necessarily be so.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning