“Clustered index” and “Order by Clause”

前端 未结 5 1462
慢半拍i
慢半拍i 2021-02-06 00:28

Is there any difference between Clustered Index and Order by Clause?

I have to populate the Dropdown from the Master Table and followin

5条回答
  •  囚心锁ツ
    2021-02-06 00:56

    If Id is your primary key(that is common scenario) and is used in joins, you should create clustered index on Id. But for searching performance gain, you should create nonclustered index on Name which will include Id.

提交回复
热议问题