Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reason for index corruption?
Message
De
18/09/2006 09:26:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
01154622
Message ID:
01154651
Vues:
29
>>
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform