devxlogo

How to Prevent Corrupt Indexes

How to Prevent Corrupt Indexes

Question:

How do I prevent corrupt indexes or automate the rebuilding of corrupt indexes?

Answer:

Prevent corrupt indexes by taking steps to prevent the crash of an application:

1. Consider using uninteruptable power supplies.

2. Defragment drives periodically.

3. Make sure that there are enough file handles on your network.

4. Make sure machines have as much memory as possible.

Excessive numbers of indexes within a CDX can also cause index corruption.

NEVER use REINDEX to rebuild indexes. If the index file becomes corrupt, REINDEX will build a corrupt index. The best approach is to manually re-create the indexes: create a prg that deletes tags and re-creates indexes one at a time. There are also tools, such as Stonefield Database Toolkit, that provide dialogs for rebuilding indexes.

devx-admin

Share the Post: