This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-10
Channels
- # announcements (15)
- # bangalore-clj (1)
- # beginners (207)
- # calva (22)
- # cider (4)
- # clara (73)
- # cljs-dev (7)
- # cljsrn (4)
- # clojure (125)
- # clojure-dev (38)
- # clojure-europe (2)
- # clojure-india (11)
- # clojure-italy (11)
- # clojure-nl (14)
- # clojure-russia (22)
- # clojure-uk (32)
- # clojurescript (30)
- # cursive (11)
- # datavis (2)
- # datomic (14)
- # editors (3)
- # emacs (3)
- # hyperfiddle (4)
- # juxt (13)
- # klipse (1)
- # luminus (5)
- # nrepl (7)
- # off-topic (9)
- # overtone (13)
- # portkey (1)
- # re-frame (15)
- # reagent (13)
- # ring (30)
- # schema (4)
- # shadow-cljs (108)
- # spacemacs (8)
- # specter (3)
- # sql (2)
- # testing (11)
- # tools-deps (21)
- # unrepl (4)
I've spend on that so much time. What is wrong with that query: https://pastebin.com/TvgmasTw my error is: (q__36748 ?block_nr), message: processing clause: [ :blocknr ?block_nr], message: :db.error/not-an-entity Unable to resolve entity: :item/block_nr what is wrong with that entity? I just want a simple aggregation.
the error suggests that :item/block_nr
is not an installed attribute name in your database
@marshall which is strange becoude my schema is: https://pastebin.com/CUwY6JqP so there is :item/block_nr 😞
user=> @(d/transact conn [{:db/ident :item/block_nr :db/valueType :db.type/string :db/cardinality :db.cardinality/one :db.install/_attribute :db.part/db}])
{:db-before datomic.db.Db@ddc3ac99, :db-after datomic.db.Db@8bbee296, :tx-data [#datom[13194139534312 50 #inst "2019-01-10T17:30:14.567-00:00" 13194139534312 true] #datom[63 10 :item/block_nr 13194139534312 true] #datom[63 40 23 13194139534312 true] #datom[63 41 35 13194139534312 true] #datom[0 13 63 13194139534312 true]], :tempids {-9223301668109598143 63}}
user=>
user=> (d/pull (d/db conn) '[*] :item/block_nr)
#:db{:id 63, :ident :item/block_nr, :valueType #:db{:id 23}, :cardinality #:db{:id 35}}
(d/q '[:find (max ?block_nr)
:where [_ :item/block_nr ?block_nr]]
(d/db conn))
[]
user=>
{:db/ident :item/amount
:db/valueType :db.type/number
:db/cardinality :db.cardinality/one
:db.install/_attribute :db.part/db}
Is there an official docker image for the Datomic Transactor from Cognitect? Has anyone used this one? https://hub.docker.com/r/pointslope/datomic-pro-starter/dockerfile/ Use case is: running transactors inside kubernetes to avoid running standby transactors (half the cost without the ec2 boot time) and better embrace resource usage within kubernetes (having less idle resources).