积极答复者
PK的顺序是否重要?

问题
答案
-
Not really, optimizer is smart enough to filter rows in proper order. Should decide order based on how to order data physically (clustered pkey only) and which column used most as search condition in queries.
- 已标记为答案 WeiLin QiaoModerator 2011年5月31日 5:14
-
Then better to put it in front if the pkey is clustered.
- 已标记为答案 WeiLin QiaoModerator 2011年5月31日 5:14
全部回复
-
Not really, optimizer is smart enough to filter rows in proper order. Should decide order based on how to order data physically (clustered pkey only) and which column used most as search condition in queries.
- 已标记为答案 WeiLin QiaoModerator 2011年5月31日 5:14
-
那么这样的话,应该更换下顺序好点吧。
If you haven't all the things you want,be grateful for the things you don't have that you didn't want.- 已标记为答案 WeiLin QiaoModerator 2011年5月31日 5:14
- 取消答案标记 WeiLin QiaoModerator 2011年5月31日 5:14
-
Then better to put it in front if the pkey is clustered.
- 已标记为答案 WeiLin QiaoModerator 2011年5月31日 5:14