Fork me on GitHub

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?


@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