This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-26
Channels
- # adventofcode (2)
- # announcements (9)
- # bangalore-clj (1)
- # beginners (158)
- # calva (32)
- # cider (2)
- # clara (4)
- # cljdoc (40)
- # cljs-dev (3)
- # cljsrn (6)
- # clojure (45)
- # clojure-brasil (2)
- # clojure-dev (35)
- # clojure-europe (9)
- # clojure-italy (7)
- # clojure-nl (2)
- # clojure-uk (29)
- # clojurescript (144)
- # code-reviews (3)
- # core-logic (9)
- # cursive (11)
- # datascript (8)
- # datomic (9)
- # duct (1)
- # figwheel (6)
- # fulcro (11)
- # hyperfiddle (27)
- # kaocha (23)
- # luminus (1)
- # off-topic (7)
- # onyx (2)
- # pathom (3)
- # re-frame (61)
- # reagent (12)
- # remote-jobs (10)
- # shadow-cljs (40)
- # spacemacs (4)
- # sql (27)
- # tools-deps (6)
- # unrepl (3)
- # vim (47)
Are there any rules of thumb about how many facts datascript can comfortably support before performance gets tricky. I'm thinking about suitability for use with re-frame for a webapp and re-natal mobile app.
I think you'd probably run into memory issues before datascript performance became an issue
Doubt it's a concern in most typical web/mobile apps, if you would be storing everything in memory anyway
I'm thinking 10k facts is likely. That'd save lots of network traffic for looks ups to essentially static data. Can't see getting to 100k facts.
Newbie observation: When I put a datascript db inside by re-frame.db/app-db and use their debug interceptor I get an error. The error occurs when clojure.data/diff tries to compare the before and after db.
Clojure 1.10.0-beta8
user=> (require 'clojure.data)
nil
user=> (require 'datascript.core)
nil
(clojure.data/diff
(datascript.core/empty-db)
(datascript.core/db-with
(datascript.core/empty-db)
[{:a 1}]))
Execution error (ClassCastException) at user/eval5 (REPL:1).
datascript.db.Datom cannot be cast to java.util.Map$Entry
I realise diffing the db is silly but it does seem like a bug.
Is this worth logging as a bug?