Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Difference between Data Fragmentation & Index Fragmentation Expand / Collapse
Author
Message
Posted Thursday, January 3, 2013 5:16 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 12:22 PM
Points: 255, Visits: 622
Hi all,

I am a newbie in SQL Server. I was exploring fragmentation topic. i came across two term which were most confusing to me and i tried to find out are those 2 term different or same.

This 2 terms are 'Index Fragmentation' & 'Data Fragmentation'. There name are sufficient to tell me that they mean fragmentation while indexing & storing data. Does other than this they mean something.
Post #1402305
Posted Thursday, January 3, 2013 6:04 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 6:40 PM
Points: 399, Visits: 2,458
Shadab Shah (1/3/2013)
Hi all,

I am a newbie in SQL Server. I was exploring fragmentation topic. i came across two term which were most confusing to me and i tried to find out are those 2 term different or same.

This 2 terms are 'Index Fragmentation' & 'Data Fragmentation'. There name are sufficient to tell me that they mean fragmentation while indexing & storing data. Does other than this they mean something.


I believe both means the same. Fragmentation occurs when loss of allocation order of data pages happens. So, in terms of index fragmentation, it means when the loss of allocation order of data pages at the leaf node level of the index.

I would wait for experts opinion on this. What I mentioned above is my understanding.

SueTons.


Regards,
SQLisAwe5oMe.
Post #1402320
Posted Thursday, January 3, 2013 6:11 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:00 AM
Points: 42,774, Visits: 35,871
Never heard the term 'data fragmentation'. Guess the person meant index fragmentation, because data can only be fragmented when it's in an index. (unless they meant data file fragmentation, which is an OS thing)


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1402325
Posted Thursday, January 3, 2013 7:24 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 12:22 PM
Points: 255, Visits: 622
yup It was Data File Fragmentation. Can you please refer me some resource which can give me practical & theoretical knowledge about Data File Fragmentation wrt SQL Server.
Post #1402366
Posted Thursday, January 3, 2013 7:33 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:00 AM
Points: 42,774, Visits: 35,871
Since it's not usually a major issue, and can't be fixed while SQL's running, and it pretty immaterial on a SAN, not really.

But it you want. Google: file system fragmentation
It's not a SQL thing, it's an OS thing.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1402371
Posted Friday, January 4, 2013 4:19 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 12:22 PM
Points: 255, Visits: 622
Hi,
Again found a new term as 'Table Fragmentation'. Now this term makes sense to me , because consider one table having clustered index on one column. The content of this column would be stored in B-Tree format and then when the page is full it allocates............. This stuff is know as Index Fragmentation.

Now what about the column other than the clustered index. They too might have fragmentation. Does this means Table Fragmentation.
Post #1402798
Posted Friday, January 4, 2013 5:21 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:00 AM
Points: 42,774, Visits: 35,871
Shadab Shah (1/4/2013)
Now what about the column other than the clustered index. They too might have fragmentation. Does this means Table Fragmentation.


No. Fragmentation is something that indexes have, not tables.

Fragmentation is the difference between logical and physical order. Columns that are not part of an index key have no logical ordering, hence can't be fragmented.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1402820
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse