Fork me on GitHub
#datomic
<
2018-05-01
>
stask09:05:19

whats the recommended procedure for upgrading on-prem transactor created via cloud formation?

marshall11:05:34

@stask https://docs.datomic.com/on-prem/deployment.html#upgrading-live-system - briefly, stand up a new cloudformation stack with the upgraded version, wait until they are both in standby, and kill the old stack

stask11:05:46

awesome, thanks!

eraserhd14:05:49

Has anyone noticed a memory leak with the datomic peer security upgrade?

d._.b19:05:04

(d/q '{:find [(pull ?p ?pulls)]
       :in [$ ?pulls]
       :where [[?p :person/company 10]]}
     (d/db conn)
     [:person/first_name
      :person/last_name])

d._.b19:05:32

this tells me "invalid pull expression", could someone explain why?

favila19:05:54

pull expressions in queries must be literal @d._.b

d._.b19:05:06

ah, i think in datascript this was allowed

d._.b20:05:35

i transacted some entities, and the way im setting 'em up might be wrong, but i can't seem to find any of them.

d._.b20:05:41

(d/transact conn ({:person/name "Fred", :db/id #db/id[-1 -1122785]} {:person/name "Bob", :db/id #db/id[-1 -1122786]})

d._.b20:05:32

I have a coll of maps, and I am doing (map #(assoc $ :db/id (d/tempid -1)) [...])

eraserhd20:05:35

without quoting the tx above, you are looking up the second in the first map, producing nil for the tx.

eraserhd20:05:52

(or use square braces)

d._.b20:05:03

err sorry, that's passed in as a sequence

d._.b20:05:26

(d/transact conn (map #(assoc % :db/id (d/tempid -1)) [...]))