Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flush why not flush?
Message
De
02/02/2003 11:04:40
 
 
À
02/02/2003 10:14:29
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
Divers
Thread ID:
00748117
Message ID:
00748162
Vues:
28
>>>>Hi,
>>>>Why last few records (newly added before ssytem crash) still could be lost even I have FLUSH after END TRANSACTION in every transaction?
>>>>
>>>>Thank you
>>>
>>>I believe one possibility is that the OS has a write-cache enabled. I am not sure whether in this case a FLUSH would force a write.
>>
>>Have a look at MSKB #Q281281. It provides some interesting information on the operation of FLUSH vis-a-vis the OS.
>
>Thanks.
>
>Hmmm... "they cache the FLUSH commands and then return operation to the application" seems dangerous to me.

Yes. It does also say (those OSes) "...continue to issue FLUSH commands in the background.".
Nevertheless, I would like to see two additional things for VFP, and I will be writing a Wish List entry for them:
1) An option on the FLUSH command to stipulate that the OS is to CONFIRM FLUSH SUCCESS before returning control to VFP;
2) Improved discussion of the FLUSH command in the VFP Command Reference section of the documentation. It has has only a word or two changed since VFP 2.5 (at least) and the advent of buffering, datasessions, differing handling by different OSes, etc. needs to be described in detail.

cheers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform