You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2022/01/22 19:11:30 UTC
[GitHub] [lucenenet] NightOwl888 commented on issue #608: MMapDirectory leads the process to high memory.
NightOwl888 commented on issue #608:
URL: https://github.com/apache/lucenenet/issues/608#issuecomment-1019340920
`MMapDirectory` is a wrapper around the [`MemoryMappedFile` class](https://docs.microsoft.com/en-us/dotnet/api/system.io.memorymappedfiles.memorymappedfile?view=net-6.0), and is meant to keep some data in RAM for fast read access. If you are only writing, you might be better off using [`NIOFSDirectory`](https://lucenenet.apache.org/docs/4.8.0-beta00015/api/core/Lucene.Net.Store.NIOFSDirectory.html) or [`SimpleFSDirectory`](https://lucenenet.apache.org/docs/4.8.0-beta00015/api/core/Lucene.Net.Store.SimpleFSDirectory.html) instead. Have you tried either of these?
Note that the documentation may not be correct about the performance characteristics of these directories, as some of the information is still referring to issues that occur in Java (so they don't necessarily apply in .NET).
--
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: dev-unsubscribe@lucenenet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org