SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Stairway to SQL Server Indexes: Step 4, Pages and Extents


Stairway to SQL Server Indexes: Step 4, Pages and Extents

Author
Message
David Durant
David Durant
SSC-Enthusiastic
SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)

Group: General Forum Members
Points: 116 Visits: 23
Comments posted to this topic are about the item Stairway to SQL Server Indexes: Step 4, Pages and Extents
Brent Ozar
Brent Ozar
SSC-Enthusiastic
SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)

Group: General Forum Members
Points: 190 Visits: 500
Nice article! Just one tweak:

"If one page in an extent is owned by TableA or IndexB, all eight pages will be owned by that same object. An exception is made for very small tables and indexes, ones that would not fill and entire extent."

Close, but not exactly. The first page of a newly created table is put into a mixed extent. When we first create a table, we don't know whether it's going to be a "very small table" - every table starts out very small. After the table has 8 pages, then future allocations are put into uniform extents, but the original pages aren't moved to uniform extents automatically. You can move them yourself by rebuilding the clustered index, though.

You can read more about it here: [url=http://msdn.microsoft.com/en-us/library/ms190969%28v=sql.90%29.aspx][/url]

Also, just to nit-pick, heh - there's a typo. It should say "would not fill AN entire extent."



David Durant
David Durant
SSC-Enthusiastic
SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)

Group: General Forum Members
Points: 116 Visits: 23
Brent,

Sorry for the long delay in replying; have been completing the remaining levels.

Will reread the level and reword it, to add your point and fix the typo.

Re the typo: Sharp eyes. Three people (self, Kalen, and Redgate) plus Word missed it.

Thanks for the input,
Dave Durant.
Author.
Brent Ozar
Brent Ozar
SSC-Enthusiastic
SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)

Group: General Forum Members
Points: 190 Visits: 500
Glad I could help - and again, great series! The community really needed this step-by-step level of training, and I love seeing 'em go live.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search