• Eric M Russell (5/22/2013)


    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.

    I don't know, I didn't create the table but now I'm looking after it! :w00t:

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn