Experimental feature: Reduce Indexing Memory Usage #652
Kerollmops
started this conversation in
Experimental features
Replies: 1 comment 3 replies
-
Hi @Kerollmops |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone 👋
For the v1.2 of Meilisearch (which will be released on 5th June), we will introduce an experimental feature that should help reduce the memory usage of the engine as an experimental feature.
Feature Abstract
This flag enables the
MDB_WRITEMAP
option of LMDB, making the internal key-value store use much less RAM than usual. Unfortunately, it can reduce the write speed of it and therefore slow down the engine. You can read more about this LMDB option in the lmdb.h header file.This flag cannot be enabled on Windows. This is due to a different way of handling memory maps on this system than on others i.e. Unix-like.
How to use the feature?
--experimental-reduce-indexing-memory-usage
CLI flag or theMEILI_EXPERIMENTAL_REDUCE_INDEXING_MEMORY_USAGE
environment variable. This option does not accept any values.What is an experimental feature
Why is this feature not stable yet?
We have yet to determine if a lot impacts performance and whether the RAM usage reduction is significant enough. Could you give us your feedback on whether we want to ship it?
When will the feature potentially be stable?
We have yet to determine when this feature could be stable since we need to iterate on it. As explained previously, we do not guarantee it will be stable someday.
Depending on the feedback we get, we plan to iterate on the feature every 1 or 2 releases (Currently, our release cycle is two months long).
🗣️ You are welcome to give feedback about the feature or ask any questions; we can guide you through this new feature usage!
Beta Was this translation helpful? Give feedback.
All reactions