Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Jul 12, 1999

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 Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date