pCloud Partner Program

SQL Server資料表使用GUID欄位考量

程式技術/Database 2014/03/14 15:34
views: 660459 times
在資料表中, 使用 GUID做為clustered index時, 很容易因為是隨機產生的值, 而導致資料存放的離散, 可以利用這個函數來改善:

NEWSEQUENTIALID()

該函數是循序地建立 GUID, 也是唯一值, 但可以降低離散的狀況, 進而改善未能有效填滿及離散的問題.

當然, 若是 GUID欄位沒有使用在 cludtered index時, 則比較不需要擔心這個問題.

參考資料:
http://technet.microsoft.com/zh-tw/library/ms189786.aspx
top

Trackback Address :: http://diary.tw/tim/trackback/1081

  1. Tracked from blog 2017/08/22 13:24 DELETE

    Subject: blog

    Find the greatest option for Wood Slab Furniture now available plus at the best price you can get now!
  2. Tracked from bulk clock movement kits 2017/08/22 16:34 DELETE

    Subject: bulk clock movement kits

    Find the greatest option for clock kit manufacturer that's available plus currently on sale you can get now!
  3. Tracked from yerba mate brewing 2017/08/22 18:33 DELETE

    Subject: yerba mate brewing

    Get top how to make yerba mate without a gourd currently available plus at the best price. Get it now!
  4. Tracked from warming trends crossfire burner 2017/08/23 00:46 DELETE

    Subject: warming trends crossfire burner

    Find here top diy gas fire pit burner currently now in stock and at the best price today!

Write a comment


PREV : [1] : ... [86] : [87] : [88] : [89] : [90] : [91] : [92] : [93] : [94] : ... [467] : NEXT



Nextbit Robin 5.2吋六核心智慧型手機 Microsoft Office 365 中文家用版PKC (無光碟)
ASUS華碩 AC1900 雙頻無線路由器 RT-AC68U 美國 VORNADO 533 渦流空氣循環機 (黑色)
御茶園 每朝健康綠茶(650mlx24入) 每朝健康 雙纖綠茶(650mlx24入)


 Waiting...