• Abu Dina (5/21/2013)


    We have a tall table that contains 2.6 billion rows

    Table structure:

    The application which uses this table has been running slow for the last couple of days and it seems to have happened following the addition of about 400 million rows last weekend.

    I think it's because of the index fragmentation although I'm not sure how to check if this the case without affecting the application?

    So my first question is, how do I check to see if the indexes are fragmented and whether the stats need updating on such a large table?

    I notice that your clustered index is on IX_dType. Why was that column chosen to cluster the table. Especially for tables with a large number of rows, you typically want to cluster on a column with unique sequential values. There could very well be fragmentation.

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho