Fork me on GitHub
#datascript
<
2016-11-11
>
seantempesta01:11:55

What’s the best way to store and resume a datascript database? I’ve creating a react native app and I’d like to resume the app state on load, but it strikes me as inefficient to write the entire datascript database to AsyncStorage (same as LocalStorage in javascript) on every transaction. Would it be “expensive" if instead I stored a vector of datoms and just transacted all of them on startup?

misha16:11:18

@seantempesta I keep datascript db in RN module in separate js-core with an api. this way you can persist to file/async-storage (sync with server) more often w/o blocking RN main app thread