GeekInterview.com
Series: Subject:
Question: 27 of 196

Recreating and Rebuilding Indexes

What is recreating and rebuiding of indexes?
Asked by: sowjanya.valaparla | Member Since Aug-2009 | Asked on: Aug 26th, 2009

View all questions by sowjanya.valaparla

Showing Answers 1 - 2 of 2 Answers
raghunadhn

Answered On : Mar 3rd, 2010

View all answers by raghunadhn

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.

  
Login to rate this answer.
sktest

Answered On : Jul 11th, 2010

View all answers by sktest

ALTER INDEX REBUILD


  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.