This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-05
Channels
- # aws-lambda (1)
- # beginners (294)
- # boot (35)
- # cider (19)
- # cljs-dev (39)
- # cljsrn (7)
- # clojars (48)
- # clojure (266)
- # clojure-android (1)
- # clojure-brasil (1)
- # clojure-france (2)
- # clojure-greece (5)
- # clojure-italy (7)
- # clojure-mexico (1)
- # clojure-russia (24)
- # clojure-spec (10)
- # clojure-uk (31)
- # clojurescript (134)
- # consulting (7)
- # cursive (69)
- # datomic (20)
- # emacs (57)
- # events (2)
- # figwheel (2)
- # hoplon (1)
- # jobs-discuss (19)
- # luminus (33)
- # lumo (18)
- # mount (1)
- # off-topic (32)
- # om (5)
- # onyx (27)
- # pedestal (15)
- # re-frame (12)
- # reagent (28)
- # rum (2)
- # schema (2)
- # spacemacs (9)
- # unrepl (2)
- # untangled (7)
- # vim (5)
- # yada (4)
@jdkealy absolutely yes it can
has anyone ever written a (db) function that takes the nested map form of an entity in transaction and also generates :db/retract's (based on e.g. 'nil' values for fields or missing values in a many relationship)?
or how are you all dealing with this when arbitrarily nested data structures need to be updated?
@stijn Datomic sure likes flat data/facts 🙂 Usually ended up with something non-generic and/or tried to flatten my data as much as i can
I have a growing number of orders in the DB. I would like to expose an API which would return these orders between dates, as given in a parameter. The simplest thing to do would be to make a query and then iterate over the returned entities. But what is the best way to implement pagination of results?
@michaelr use the :avet
index on :order/date
and return a 'next-page' token to the client based on either the date, or if you want a fixed set of results the date + the entity id
@augustl yes, but I was looking for something generic because i'm fed up implementing the non-generic 🙂
@stijn No way to specify (> some-date) for the value? Should I be iterating over the whole index?