This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-16
Channels
- # announcements (11)
- # beginners (184)
- # calva (91)
- # cider (68)
- # cljdoc (42)
- # cljs-dev (44)
- # clojure (228)
- # clojure-dev (1)
- # clojure-europe (3)
- # clojure-italy (4)
- # clojure-losangeles (6)
- # clojure-nl (9)
- # clojure-spec (73)
- # clojure-uk (19)
- # clojurescript (61)
- # core-async (6)
- # cursive (2)
- # datomic (11)
- # fulcro (28)
- # hyperfiddle (16)
- # leiningen (2)
- # luminus (3)
- # off-topic (19)
- # om-next (1)
- # re-frame (2)
- # reagent (12)
- # reitit (4)
- # ring-swagger (5)
- # shadow-cljs (14)
- # slack-help (6)
- # spacemacs (2)
- # tools-deps (40)
- # vim (15)
- # yada (4)
what’s “the better way” to handle things like aggregation (of values), comparison (of dates), etc. should it be done in the db query? in post-processing code afterward? does it even matter if you’re not using a peer?
in my head i guesstimate that it’s better to not use the db’s resources for such concerns, but that’s probably wrong because 1. you can have as many queriers as you want, so you’re not “clogging up the db process” 2. the data is right there and it’s likely faster for the query engine to handle things like sorting, aggregation, etc.
@lwhorton I don't think there is a one size fits all answer here. In the peer/ions model, db and application share resources so i wouldn't worry about that.
In the peer/ions model, queries compose like code, so for a first pass, i would just do what makes my code simpler. Splitting complex operations into multiple queries that compose together is perfectly idiomatic in the peer/ions model.
Getting this exception with Datomic Cloud production topology:
java.lang.RuntimeException: No such var: p/list-databases, compiling:(datomic/client/api/async.clj:78:3)
typo, maybe? did you mean d/list-databases
?