Recreating and Rebuilding Indexes

What is recreating and rebuiding of indexes?

Questions by sowjanya.valaparla

Showing Answers 1 - 6 of 6 Answers

raghunadhn

  • Mar 3rd, 2010
 

Rebuilding Index
Syntax: Alter index index_name rebuild.
If you rebuild the index, the existing index will be dropped and created immediately, and any overheads existing on the index wil be removed. The main advantage in rebuilding the index is, if the existing index is getting used in any of the queries, those queries still use the index, while the rebuilding is in process. As a result, whle rebuilding, if you use the query, query uses the index there by avoiding the full table scans.

Recreating Index
To recreate the index, you need to drop it first. As a result the queries that use the index no longer use the index unless and until the index is recreated.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions