Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What is use of pad Indexs?

Posted on 2006-07-12
1
Medium Priority
?
816 Views
Last Modified: 2010-06-16
Hi,
I'm curious what is the use of Pad Index?? how it can boost sql server performance by enable this option? and what is the great advantages by using Pad Index?
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

Accepted Solution

by:
jrb1 earned 750 total points
ID: 17091480
http://www.sqlservercentral.com/columnists/chedgate/clusterthatindexparttwo.asp

FILL FACTOR & PAD INDEX
One thing that I intentionally left out of the prior article was a description of fill factor and pad index, in order to keep focus on the problems of not having a clustered index on a table. One thing I did mention was that one slight disadvantage you might run into by having a clustered index on a table are the page splits that can occur when adding data (or sometimes when changing existing data) to the table. This is a part from that article:
 
"Because the data is stored in the order of the index, to insert a new row SQL Server must find the page with the two rows between which the new row shall be placed. Then, if there is not room to fit the row on that page, a split occurs and some of the rows get moved from this page to a newly created one."
 
As some of you readers commented, one way to counter this (at least to a degree) is to specify a value for the fill factor and possibly pad index for the clustered index. Fill factor specifies the percentage that SQL Server should fill every data page to when creating an index. Specifying a fill factor value of 50 therefore means that each data page will only be half full, in effect meaning that the storage space needed for the table is doubled (since there are twice as many data pages). The good thing is that page splits are not as necessary as with a higher fill factor, since there will usually be room on a page to insert a new row without splitting the page into two and moving rows between them. If fill factor is specified you can also specify the option to use pad index (it uses the same value as fill factor), which works in the same way as fill factor only it is used for index pages in the intermediate levels (between the root level and leaf level).
 
Note that both options are only used when creating or rebuilding an index. They are not maintained after initial 'filling' by SQL Server, as that would defeat the original purpose to use them, i.e. avoiding page splits (as SQL Server would have to use page splits to maintain them). Also note that these options apply for non-clustered indexes as well, the index pages of non-clustered indexes use page splits in the same way as clustered indexes of course. As always, think carefully and test the effects of changing the fill factor and pad index values.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question