TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

45 pointsby ammarahm-edabout 5 years ago

8 comments

tomovoabout 5 years ago
In the iOS implementation, a new dispatch queue is created on each &#x27;set&#x27; or &#x27;get&#x27; call, from which it switches to the main queue to call MMKV, wrapped in a try&#x2F;catch block.<p>Inside the MMKV library, a NSData object is created, another class is used to write a single &quot;int&quot; value to it, then the data object is used as the &quot;raw&quot; value for the given key.<p>I haven&#x27;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?
评论 #22649361 未加载
sercandabout 5 years ago
We are using SQLite on React Native with the JSI without writing a java or object C bridge. As a result, all operations are much faster and almost all of them don&#x27;t need to Promise callback. I don&#x27;t see any reason to use this over SQLite. We can do same thing on SQLite much faster way.
评论 #22650839 未加载
评论 #22651716 未加载
c-smileabout 5 years ago
Just for the note:<p>Sciter implements what I call &quot;an ultimate data persistence solution&quot; - NoSQL DB integrated right into script VM.<p>You can open storage as:<p><pre><code> var storage = Storage.open(&quot;path&#x2F;to&#x2F;data&#x2F;file.db&quot;); </code></pre> Storage provides root object - normal script object (or array) that can be updated by normal script means:<p><pre><code> storage.root = { foo:[1,2,3], bar: {...} }; storage.root.foo.push(4); storage.root.bar.newProp = 42; </code></pre> All script objects that are accessible from the storage.root are persist-able - pushed to HD on storage.close() or storage.commit();<p>More details about architecture and implementation: <a href="https:&#x2F;&#x2F;sciter.com&#x2F;data-persistence-in-sciter-database-integrated-with-the-language&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sciter.com&#x2F;data-persistence-in-sciter-database-integ...</a><p>Overall feature set is close to MongoDB (modulo sharding).<p>DB layer uses Konstantin Knizhnik&#x27;s DyBASE pretty much as it is: <a href="http:&#x2F;&#x2F;www.garret.ru&#x2F;dybase.html" rel="nofollow">http:&#x2F;&#x2F;www.garret.ru&#x2F;dybase.html</a>
throw03172019about 5 years ago
What is the benefit over async storage? We’ve built a few RN apps and never felt it was too slow to work with.
laexabout 5 years ago
How does react-native-mmkv-storage store data under-the-hood?<p>When I was building SwiftStore - a KV store [1] for iOS, I went with LevelDB as the choice for the underlying database.<p>LevelDB because it&#x27;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.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;hemantasapkota&#x2F;SwiftStore" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hemantasapkota&#x2F;SwiftStore</a>
评论 #22651819 未加载
jiofihabout 5 years ago
Why use this over SQLite?
评论 #22651727 未加载
jitlabout 5 years ago
I’m surprised to not find any iteration or query primitives. No key scanning?
评论 #22649328 未加载
theyoungwolfabout 5 years ago
can someone tell me what this is used for? Is this like a replacement for localstorage?
评论 #22649313 未加载