One 400GB table, One query - Need Tuning Ideas (SQL2005)

后端 未结 24 2124
予麋鹿
予麋鹿 2021-01-30 15:03

I have a single large table which I would like to optimize. I\'m using MS-SQL 2005 server. I\'ll try to describe how it is used and if anyone has any suggestions I would appreci

24条回答
  •  死守一世寂寞
    2021-01-30 16:05

    what is D1, is it decimal or a long char please can you elaborate this. My recomendation would be to create the clustered index as (K7, k2, k1, k4) and then create an aditional index on (k3) (creation of an index on the two bool values are mostly meaningless unless the value distribution is around 30%/70% between the values, or if your table is very wide, if d1).

    this change would not greatly impact your insert speed much at all, while providing you with a rough generic answer to the clustered index.

提交回复
热议问题