Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reason for index corruption?
Message
From
18/09/2006 09:26:21
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01154622
Message ID:
01154651
Views:
27
>>
>>Yes.
>>Someone turns off workstation without proper shutdown.
>
>I have often heard the above explanation for the index corruption. But I am wondering, if a table is open by the application but the application is idle, would it still corrupt an index? And why?

Any indexed field may have been updated but the updated DBF and/or CDX (the .cdx file may be updated "later" for all I know) records are still in the OS cache and have not been transferred to the real table.
Keep in mind that that FLUSH without the new VFP9 parameter simply tells the OS that the application is finished with the record. It does NOT ensure that the record is immediately written to the actual table.
Depending on how VFP handles .CDX files it could be even worse for them.

That's one theory.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform