Show HN: Fast database for React Native with multiple data-type support
1–10 of 22 posts
Re: Show HN: Fast database for React Native with multiple data-type support
#2Inside the MMKV library, a NSData object is created, another class is used to write a single "int" value to it, then the data object is used as the "raw" value for the given key.
I haven't looked any futher but already this seems like a lot of work to set a number in memory. Is there any reason for this?
Re: Show HN: Fast database for React Native with multiple data-type support
#3Re: Show HN: Fast database for React Native with multiple data-type support
#4Re: Show HN: Fast database for React Native with multiple data-type support
#5can someone tell me what this is used for? Is this like a replacement for localstorage?
Re: Show HN: Fast database for React Native with multiple data-type support
#6I’m surprised to not find any iteration or query primitives. No key scanning?
Re: Show HN: Fast database for React Native with multiple data-type support
#7In the iOS implementation, a new dispatch queue is created on each 'set' or 'get' call, from which it switches to the main queue to call MMKV, wrapped in a try/catch block. Inside the MMKV library, a NSData object is created, another class is used to write a single "int" value to it, then the data object is used as the "raw" value for the given key. I haven't looked any futher but already this seems like a lot of wor…
The second thing about numbers is that its just in case you needed it for something, it is there but there are other ways to set the data too.
Re: Show HN: Fast database for React Native with multiple data-type support
#8Re: Show HN: Fast database for React Native with multiple data-type support
#9I’m surprised to not find any iteration or query primitives. No key scanning?
MMKV is a simple key-value store but the good thing is that it is fast, A custom indexer can be made for querying. However there is a method to get all the keys in the storage but its not exposed in react native side. Is that what you mean?