-
What is the difference between Rebuild Indexes and dropping and recreating the indexes.Are these same ?
Thanks
-
Hi
Yes it does the same.
The rebuild clause drops the original index when the rebuild is completed ie when the new index is created.
Regards
Santosh
-
When u delete or update a record in a table the corresponding index data in the index will not delete or updated instead for an update, a new record will be inserted in the index and rebuild will remove all those records that do not match with the table records and also rebuild will not remove an fragmentation in the index segment.But you can de-fragment the index segment when u drop and recreate with appropriate storage parameters.
cheese
anandkl
anandkl
-
Hi
Rebuild can be used to create the index in a different tablespace with different storage parameters and it can be used with parameter
online
in which case the index is still accessable.
Regards
Santosh
-
To my understanding , fragmentation will be eliminated in both the ways, Rebuild of index will use the existing index and hence it is much faster and needs much space on the disk.
well dropping is also a good thing, just like starting from fresh , but its a time consuming process, sometimes u are not affordable to do it.
Rebuild with NOLOGGING (no REDO will be generated ) is much faster way of creating the index, incase of failure of Index creation , u always will have the old, existing one.
-
Thanks a lot for valuable suggestions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|