Index 填滿因子(Fill Factor)

  • Fill Factor 設太高,發生 Page Split 的壞處

Page split 與 Lock http://sqlblogcasts.com/blogs/tonyrogerson/archive/2007/06/28/what-is-a-page-split-what-happens-why-does-it-happen-why-worry.aspx

觀察效能計數器 SQL Server Access Methods: Page Splits/sec

 

  • Fill Factor 設太低,直接導致 Index Fragmentation,浪費查詢的 IO

Index Fragmentation 的壞處與分析 http://www.sql-server-performance.com/articles/per/detect_fragmentation_sql2000_sql2005_p1.aspx

移除 Index Fragmentation http://msdn.microsoft.com/en-us/library/ms177571.aspx

或許可以在定期重整索引、Fill Factor 間求取平衡,並透過 Performance Counter 和 Index Fragmentation 的狀況來觀察

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: