Fork me on GitHub
#datomic
<
2017-01-25
>
val_waeselynck09:01:43

What EC2 instance type would you recommend for running a Datomic Peer ? (use case: a 4G-RAM, OLTP web server)

val_waeselynck09:01:30

I've been running mine on t2.medium so far but I don't know how to balance compute, memory and I/O specifically for a Peer

val_waeselynck09:01:58

note that I do mean a Peer, not a Peer Server

robert-stuttaford10:01:30

we’re on c4.xlarge

karol.adamiec17:01:39

i have a query like :

[:find   (pull ?tx [:db/txInstant]) (pull ?e [* {:order/items [* {:item/part [*]}]}])
          :in $
          :where [?e :order/number _ ?tx true]]

karol.adamiec17:01:48

works fine but returns array of tuples [instant, order-object]

karol.adamiec17:01:13

how can i rewrite the query so the txinstant is ‘merged’ into the entity?

pesterhazy17:01:50

you can pull in a where clause

pesterhazy17:01:24

but not sure if that's worth the trouble (instead I just map after querying)

karol.adamiec17:01:36

how would a pull in where look like? sounds new to me...

karol.adamiec17:01:46

map definitely sounds easier though 🙂

marshall19:01:13

@ezmiller77 I’ve added a new page to the docs that covers getting a local dev setup running: http://docs.datomic.com/dev-setup.html

marshall20:01:44

Given the recent discussion about schema lifecycle in here, I wanted to mention the blog post from Stu Halloway from today: http://blog.datomic.com/2017/01/the-ten-rules-of-schema-growth.html

dominicm21:01:49

I'd love to know, under Stu's recommendations, how I can break up a field? I have a field which is currently stored as edn strings, and are converted as the entity is read. Now those attributes need querying, so I want to deprecate that field. But how can I ever (from a query position) trust that field is entirely gone? Currently we do things like get all X, read their edn and filter (goodbye, optimizations from datomic!) Must I always keep this code around which is extremely unperformant in order to never break backwards compatibility?

donmullen22:01:49

Interesting mozilla project drawing on datomic / datascript : https://github.com/mozilla/mentat — originally clojurescript now rewriting in Rust.