Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about the REINDEX command
Message
From
09/04/2005 21:38:44
 
 
To
09/04/2005 21:29:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003134
Message ID:
01003148
Views:
17
>>>Hi,
>>>
>>>I noticed that when I issued REINDEX on a few tables (which had not been REINDEXed for quite some time) the SIZE of the CDX file became considerably smaller. Does REINDEX do some kind of optimization that would result in this as a matter of course or might the change indicate a problem of some kind? I can't seem to find any technical reference in MSDN that explains this.
>>>
>>>thanks,
>>>
>>>-Arne
>>
>>Indexes can become corrupt.
>>
>>Who knows how that would impact the size.
>>
>>To be safe you should drop and re-create your indexes from scratch.
>
>This is simply incorrect. There was nothing in the original that said the tables were exhibiting trouble before the REINDEX, so a REINDEX is good and proper and the fastest way to accomplish what was needed.

I'll give you that there was nothing indicating that there was a problem, but I've experienced problems with the REINDEX over time not properly re-creating the indexes.

There may not be a problem now, but the re-creation of indexes is more in the lines of preventive medicine.
Previous
Reply
Map
View

Click here to load this message in the networking platform