Use of Standard, Compact & Compound Index Files in FoxPro

ID: Q92343

The information in this article applies to:

SUMMARY

Microsoft FoxPro uses three types of indexes: standard, compact, and compound. The information below describes the three types of indexes and their uses.

MORE INFORMATION

Microsoft FoxPro versions 1.x for MS-DOS and Microsoft FoxBASE+ versions 1.x and 2.x for MS-DOS use standard .IDX index files. FoxPro supports this index format for compatibility with the earlier products.

Compact indexes, both .CDX and .IDX indexes, are compressed, which makes them up to one-sixteenth the size of a standard .IDX index. Because a compact index is smaller, it can be processed much more quickly. These files are also known as an "individual" indexes because each file contains only one index.

Compound .CDX indexes contain multiple index entries called tags. Each tag is a separate index in the file. A compound .CDX file requires only one file handle for all of its indexes. This can help conserve system resources in a large project.

NOTE: FoxPro automatically opens a special .CDX file, the structural compound index, when it opens a database file. By default, the structural compound index has the same name as its associated database file.

Additional reference words: FoxDos FoxWin 1.00 2.00 2.50 2.10 KBCategory: kbprg KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995