Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flush = .T.
Message
De
02/09/2008 19:31:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01343699
Message ID:
01344347
Vues:
16
>Hilmar
>
>I ask whether "flush force" is better than "flush"
>
>
>Moises

Well, yes, apparently.

The help says that this clause calls the Windows FlushFileBuffers API. The help for this API - obtained from http://msdn.microsoft.com/en-us/library/aa364439.aspx - says:

"Typically the WriteFile and WriteFileEx functions write data to an internal buffer that the operating system writes to a disk on a regular basis. The FlushFileBuffers function writes to a disk all the buffered information for a specified file."

So, as I understand it, it seems that data "written to disk" is really stored in Windows buffers for a while. If the power goes down soon after "writing" the data, you are in trouble. Well, your user's data, anyway.

I understand there separate buffers, 1. for the OS, 2. for the hard disk. The hard disk buffer (write cache) must be disabled separately.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform