You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading through the differences between react-native-mmkv and react-native-mmk-storage (detailed in this thread), I've chosen react-native-mmkv for my next project but there's a stark difference that seems rather important:
In the react-native-mmkv docs, It is recommended that you re-use this instance throughout your entire app instead of creating a new instance each time, so export the storage object.
But in react-native-mmkv-storgage, it's recommended that you create separate instances per module for better performance since each database instance is small instead of a single bulky database which makes things slower as it grows.
So for this library, if the recommendation is a single instance then does that mean a single bulky database which makes things slower as it grows is not a problem here?
Thanks in advance for your response!
The text was updated successfully, but these errors were encountered:
After reading through the differences between
react-native-mmkv
andreact-native-mmk-storage
(detailed in this thread), I've chosenreact-native-mmkv
for my next project but there's a stark difference that seems rather important:In the
react-native-mmkv
docs,It is recommended that you re-use this instance throughout your entire app instead of creating a new instance each time, so export the storage object.
But in
react-native-mmkv-storgage
, it's recommended that you create separate instances per module forbetter performance since each database instance is small instead of a single bulky database which makes things slower as it grows.
Link here: https://rnmmkv.vercel.app/#/?id=create-unlimited-database-instances
So for this library, if the recommendation is a single instance then does that mean
a single bulky database which makes things slower as it grows
is not a problem here?Thanks in advance for your response!
The text was updated successfully, but these errors were encountered: