This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-10
Channels
- # admin-announcements (1)
- # aleph (1)
- # asami (9)
- # babashka (30)
- # beginners (83)
- # calva (8)
- # cherry (4)
- # cider (4)
- # clj-kondo (15)
- # cljs-dev (11)
- # cljsrn (8)
- # clojure (85)
- # clojure-europe (87)
- # clojure-losangeles (9)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (3)
- # clojurescript (12)
- # community-development (5)
- # conjure (1)
- # core-typed (3)
- # datomic (21)
- # docker (13)
- # emacs (13)
- # funcool (1)
- # google-cloud (1)
- # graalvm (12)
- # gratitude (14)
- # holy-lambda (6)
- # introduce-yourself (18)
- # lsp (15)
- # malli (6)
- # matcher-combinators (15)
- # nbb (15)
- # off-topic (37)
- # pathom (31)
- # portal (23)
- # rdf (3)
- # releases (2)
- # reveal (2)
- # sci (4)
- # scittle (3)
- # shadow-cljs (14)
- # squint (2)
- # tools-deps (29)
Howdy, Is it possible do use datalog databases as the persistence layer with cljsrn? e.g xtdb, datomic etc
Do you mean locally? If so, I think your best option is Datascript, although I think you’ll have to write your own code to save its state to disk on changes.
Small heads up based on my experience a couple of years ago. Initialising a datascript db involves indexing which was quite resource intensive for my cljsrn app. Impacted UX. Depends on what data you need to load of course. I had a lot of reference data.
Thanks for the heads up, looks I'd be better off going with something more run of the mill for the db.
Logseq saves a Datascript db in an IndexedDB database; not sure what provides that in their CapacitorJS-based mobile app, or if it's available to RN, though.
Interesting. A persisting datascript would be sweet. I can imagine serlising to IndexedDB but can't intuitively see how you can run datascript queries against it. I think IndexDB only handles simple types so the comparison stuff is limited (serialisable?). The async API is a challenge too. (old memories, could be wrong).