Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Curiousity on a Wish rating
Message
From
09/02/2003 18:24:13
 
 
To
09/02/2003 18:16:37
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00748446
Message ID:
00751226
Views:
29
>>>It is obvious to me that I am able to write "through the cache" on the server (as MS puts it) from a client machine using FILE_FLAG_WRITE_THROUGH (just like SQL Server does).
>>
>>Well I can't tell for sure. I see FILE_FLAG_WRITE_THROUGH as applicable ONLY in the CreateFile, so it seems applicable to all WRITE I/O to the file. I was reading about FlushFileBuffers and it seems more applicable for FLUSH, at least as I understand things.
>
>I'll take one or the other. If I was asking for the "community" in general, I would ask for FILE_FLAG_WRITE_THROUGH which imposes less of a responsibility (to "flush") on the application programmer. A compromise could be both, with a "toggle" for opening files with FILE_FLAG_WRITE_THROUGH.

Yes, after reading your other regarding SQL Server I'd certainly feel comfortable with CreateFile/FILE_FLAG_WRITE_THROUGH. Then FLUSH wouldn't matter.
I was reticent earlier (still am, a teeny bit) because of performance impact, but if its good enough for SQL Server...

cheers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform