SQL Server interview question...

By dotnetinterviewquest

145 0 0

More

SQL Server interview questions: - What is Fragmentation in SQL Server?

145 0 0
By dotnetinterviewquest

This is the SQL Server interview questions which are asked during the interview not so frequent. But still go through it once before going for the interview.

Speed issues occur because of two major things

·   Fragmentation.

·   Splits.

Splits have been covered in the first questions. But one other big issue is fragmentation. When database grows it will lead to splits, but what happens when you delete something from the database…HeHeHe life has lot of turns right. Ok let’s say you have two extents and each have two pages with some data. 

Now over a period of time some Extent and Pages data undergo some delete. Here is the modified database scenario. Now one observation you can see is that some page’s are not removed even when they do not have data. Second If SQL server wants to fetch all “Females” it has to span across to two extent and multiple pages within them. This is called as “Fragmentation” i.e. to fetch data you span across lot of pages and extents. This is also termed as “Scattered Data”.

What if the fragmentation is removed, you only have to search in two extent and two pages. Definitely, this will be faster as we are spanning across less entities

See therightside video on calling a stored procedure using LINQ: -

Continue Reading

You'll Also Like

66.6K 1.2K 97
Continuation of Modesto story who happens to intercourse with friends,mature,classmates,strangers and even family...
687K 1.2K 22
Smexy One shots😘 Got deleted twice 3rd times a charm🤦🏻‍♀️😭
261K 1.4K 33
This is a mix of different animes that have smut in them
81.8K 3.5K 80
❤️