Live data from Hacker News

Show HN: Fast database for React Native with multiple data-type support

github.com

21–22 of 22 posts

Re: Show HN: Fast database for React Native with multiple data-type support

#21
How does react-native-mmkv-storage store data under-the-hood?

When I was building SwiftStore - a KV store [1] for iOS, I went with LevelDB as the choice for the underlying database.

LevelDB because it's written in c++ and used widely as an embedded database. Integrating it as a static library in Objective-C is also fairly straight forward.

[1] https://github.com/hemantasapkota/SwiftStore

Re: Show HN: Fast database for React Native with multiple data-type support

#22
post #21

How does react-native-mmkv-storage store data under-the-hood? When I was building SwiftStore - a KV store [1] for iOS, I went with LevelDB as the choice for the underlying database. LevelDB because it's written in c++ and used widely as an embedded database. Integrating it as a static library in Objective-C is also fairly straight forward. [1] https://github.com/hemantasapkota/SwiftStore

MMKV uses mmap to keep memory synced with file, and protobuf to encode/decode values, making the most of iOS/macOS to achieve best performance and uses c++
Post reply on HN