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

后端 未结 24 2090
予麋鹿
予麋鹿 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 15:56

    Why have you clustered on the primary key?
    Which columns can be NULL?
    What are the VARCHAR lengths?
    What does the query plan give you now?

    You handicap us by giving meaningless column names.

    Even if the clustered index is proper, the more selective field should come first.

    I could make recommendations based on insufficient information, but some help would be better.

提交回复
热议问题