Add options for flushing IO writes to disk. This can be enabled for LOG or DOCUMENTS exclusive of each other. Use this: . Enable file system write-through caching: The write-through caching policy ensures that every write operation is immediately committed to the disk. You can enable this policy using the FileOptions.WriteThrough flag when creating the FileStream object.
Also look at FileStream.Flush(true).
Add options for flushing IO writes to disk. This can be enabled for LOG or DOCUMENTS exclusive of each other. Use this: . Enable file system write-through caching: The write-through caching policy ensures that every write operation is immediately committed to the disk. You can enable this policy using the FileOptions.WriteThrough flag when creating the FileStream object.
Also look at FileStream.Flush(true).