eladmarg commented on issue #933:
URL: https://github.com/apache/lucenenet/issues/933#issuecomment-2016568078

   its not related to the index / code. 
   all performance degradation by the filestream.
   
   just to validate this, i changed the FSDirectory file stream with flags, and 
the problem gone.
   
   ```csharp
   file = new FileStream(
       path: Path.Combine(parent.m_directory.FullName, name),
       mode: FileMode.OpenOrCreate,
       access: FileAccess.Write,
       share: FileShare.ReadWrite,
       bufferSize: CHUNK_SIZE,
       FileOptions.Asynchronous | FileOptions.RandomAccess | 
FileOptions.WriteThrough);
   ```
   
   any chance to let Microsoft to know about it? 
[here](https://github.com/dotnet/runtime/issues/new?assignees=&labels=tenet-performance&projects=&template=03_performance_issue.md&title=)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to