Replies: 2 comments 1 reply
-
This is, I guess, a discussion of best practices for specific use cases. |
Beta Was this translation helpful? Give feedback.
-
If you use MicroStream only for a reading scenario, the housekeeping is idle most of the time, so it doesn't affect the performance anyway. If you want to achieve a high write throughput, you can either segment your data or use lazy collections. See details here, and results here. |
Beta Was this translation helpful? Give feedback.
-
the original issue is microstream-one/bookstore-demo#10, the actual write cost is very bad.
the batch mode can't be used for the actual case is that every user add one book and it needs to be stored into microstream to avoid data lost when app shutdown or machine shutdown accidentally.
Do we have any best practice when using microstream, for example StorageEntityCache.Default.setGarbageCollectionEnabled(false); or set housekeeping to 24housr/15min, then call the issueGarbageCollection explicitly at scheduled time ?
such as, only using in reading scenario, not use in writing scenario(write all thing when app starts, not write in real-time when app is running).
arthas(https://github.com/alibaba/arthas) analysis log
@fh-ms @hg-ms
Beta Was this translation helpful? Give feedback.
All reactions