Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
Page Splits And Fill Factor
Page Splits And Fill Factor
Rate Topic
Display Mode
Topic Options
Author
Message
pradeep_pvn
pradeep_pvn
Posted Sunday, October 10, 2010 2:04 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, March 03, 2013 1:18 AM
Points: 6,
Visits: 30
Page Splits
-------------
When page split happens - which part of the row is moved? Is the whole row copied to a new location [or] that part of the row which cannot be accommodated is copied over?.
Fill Factor
-----------
"Page spilts will be reduced by specifying fill factor"
This is something I read and got confused thinking about the inserts and updates. There is a certain % of space that will be reserved on setting the fill factor (Okay accepted !!). But, Is the space reservation applied only when entering the data for the first time in the page?
Will the reservation space be consumed while updating and inserting new records? Is this how fill factor help in update and insert.
Post #1001782
bitbucket-25253
bitbucket-25253
Posted Sunday, October 10, 2010 1:07 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 6:44 AM
Points: 5,099,
Visits: 20,192
For a good discussion of why page splits occur and what happens, read the following (It contains sample code and results to make understanding much easier)
http://sqlblogcasts.com/blogs/tonyrogerson/archive/2007/06/28/what-is-a-page-split-what-happens-why-does-it-happen-why-worry.aspx
The above blog also contains this link, (to a Paul Randal blog post) which further explains (with sample code) what occurs / causes page splits.
http://blogs.msdn.com/b/sqlserverstorageengine/archive/2006/12/13/more-undocumented-fun_3a00_-dbcc-ind_2c00_-dbcc-page_2c00_-and-off_2d00_row-columns.aspx
Corrected spelling of Paul Randal's name
If everything seems to be going well, you have obviously overlooked something.
Ron
Please help us, help you -before posting a question please
read
Before posting a performance problem please
read
Post #1001835
pradeep_pvn
pradeep_pvn
Posted Sunday, October 10, 2010 7:50 PM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, March 03, 2013 1:18 AM
Points: 6,
Visits: 30
Thank you
According to the blog .. The complete row is transferred to the new page. But it still does not answer my question about the Fill Factor. May be I need to do more study on this topic.
Anyways, Thanks again for the reply.
Post #1001871
Stefan_G
Stefan_G
Posted Tuesday, October 12, 2010 6:24 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, April 29, 2013 2:13 AM
Points: 275,
Visits: 750
The fill factor only applies when an index is created or rebuilt.
SQL server does not try to maintain the fill factor when updating or inserting values.
Quote from BOL:
The fill factor setting applies only when the index is created, or rebuilt. The SQL Server Database Engine does not dynamically keep the specified percentage of empty space in the pages. Trying to maintain the extra space on the data pages would defeat the purpose of fill factor because the Database Engine would have to perform page splits to maintain the percentage of free space specified by the fill factor on each page as data is entered.
Post #1002727
pradeep_pvn
pradeep_pvn
Posted Tuesday, October 12, 2010 11:55 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, March 03, 2013 1:18 AM
Points: 6,
Visits: 30
Excellent ! Just the answer I was looking for. Thank you steven.
Here is an extract from microsoft url about the fill factor.
http://msdn.microsoft.com/en-us/library/aa196711(SQL.80).aspx
Post #1003081
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.