Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CDX size bloating on large number of INSERTs
Message
 
À
13/04/2001 15:46:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00495402
Message ID:
00495425
Vues:
9
Craig,

>Nope, that's the way it works. REINDEX will simply tacks the new keys at the end of the CDX and not reuse the old space. This is called Index Bloat. You need to DELETE TAG or DELETE TAG ALL before doing and INDEX ON (At this point, REINDEX will not work). There is a KB article on my web site that explains this.

Sorry to be snippy, but did you even read my post?

I am well aware that when properly reindexing, one should use a DELETE TAG ALL and then rebuild.

My posting has nothing to do with that.

As I used SQL INSERTs to build my table, the CDX grew to 113 MB in size. I then simply opened the table exclusively, issued a straight REINDEX, and the size of the CDX file _dropped_ to 67 MB. If I had done a DELETE TAG ALL and rebuilt indexes, it may have gotten even smaller -- I didn't test that. I didn't need to test that, given the fact that a straight REINDEX dropped the CDX size considerably and queries were running in sub-second fashion. I want to know why clean INSERTS resulted in such a sloppy, bloated CDX file, and at what size of a table does this become noticeable?

Any ideas on why the initial build of the table via INSERTs results in such a bloated, slow CDX file?

Thanks,
JoeK
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform