Fork me on GitHub
#datomic
<
2016-12-23
>
robert-stuttaford05:12:29

wow, that’s awesome @alexmiller ; til about supers and those two class graph libs

wei05:12:29

is there a way to use spec that works with both maps and datomic's entitymaps?

geoffk11:12:58

We wrote a metrics callback handler for capturing Datomic peer metrics in CloudWatch which I hope might come in handy for someone else too. https://gist.github.com/geoff-kruss/4504cdcf7e017d289862ab75fc856720

Alex Miller (Clojure team)13:12:18

@wei no - s/keys relies on being able to iterate the map and you can't do that with entity maps. There is a ticket about this. One option is to put the entity into a map first by either into or select-keys

kwladyka15:12:51

https://www.refheap.com/49bc0c1dfa442e26d4d2af766 - how you deal with data transformation datomic <-> spec? I mean what is your data structure in situation like that and what do you use to transform it from datomic -> spec and from spec -> datomic. I can use :product/id keys in app, but then i will feel like i am doing structure especially for datomic in the app.

ghaskins18:12:16

I currently run the transactor with "-Xms384m -Xmx384m" and ...

ghaskins18:12:44

but no matter what i try, I get that error on start up on the peer side

ghaskins18:12:08

any help understanding what is wrong would be appreciated

ghaskins18:12:32

this is free-0.9.5407 in case it matters

ghaskins18:12:42

hmm, one thing I am noticing is I get this error even without the transactor running

ghaskins18:12:23

ok, so setting -Xm*512m in the peer seems to have fixed it: its like the peer needs its own transactor.properties too?

robert-stuttaford18:12:42

@ghaskins http://docs.datomic.com/capacity.html has a pretty comprehensive explanation of all the knobs and dials on this topic

Drew Verlee22:12:08

has anyone had success using this buildpack to deploy an app + datomic to heroku? It looks so nice and then i hit a: Error: Could not find or load main class clojure.main which suggests its not building the jar i think.

Drew Verlee22:12:42

http://blog.opengrail.com/datomic/heroku/postgres/2015/11/19/datomic-heroku-spaces.html <-- the builder of the buildpack i used seems to suggest using the openspace isn't just for security, but is necessary. That might be my issue?

Drew Verlee22:12:07

I guess ill pivot back to the AWS methods 🙂

wei22:12:01

@alexmiller re: spec and entity maps - I’ve been doing this but it’s not composable and you can’t validate a ref, for example. do you have any suggestions?

(defmacro valid? [spec m]
  `(clojure.spec/valid? ~spec (into {} ~m)))

(defmacro assert [spec m]
  `(clojure.spec/assert ~spec (into {} ~m)))

bhagany22:12:04

We finally and officially have Datomic in production wooooooooo

wei23:12:34

congrats @bhagany! we’re running datomic in production as well 🙂