Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

Why do we need to rebuild and reorganize Indexes in SQL Server?

Asked by Carol Bower Apr 16, 2021 1.3K views 1 answer
Share

About this question

After searching the internet i couldn't find the reason for

  • Why do we need to rebuild and reorganize indexes in SQL Server?
  • what does internally happens when we rebuild and reorganize?

An article on a site says : The index should be rebuild when index fragmentation is great than 40%. The index should be reorganized when index fragmentation is between 10% to 40%. The index rebuilding process uses more CPU and it locks the database resources. SQL Server development version and Enterprise version has option ONLINE, which can be turned on when Index is rebuilt. The ONLINE option will keep the index available during the rebuilding. I couldn't understand this, though it says that WHEN to do this, but I would like to know WHY do we need to rebuild and reorganize indexes?

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.