Fork me on GitHub
#datomic
<
2017-04-20
>
jimmy04:04:10

hi guys, is there any macro to convert current clojure function to datomic function ? And btw, is it the right way to use datomic function as migration function ?

isaac06:04:07

What is the best way to pull last nth entities (`order by some/field desc`)?

Lambda/Sierra13:04:35

@isaac With a typical schema & query, you have to query for all entities of that type and sort them in the Peer. If you need to do this kind of operation frequently, it may be more efficient to create a dedicated attribute with "time" in reverse order. Then you can use d/index-range to scan for the latest.

jdkealy16:04:45

Are there any examples i can use for inspiration regarding using multiple databases? I have one type of entity which I know will exceed 10BN datoms and I imagine I'll have to be adding databases and transactors maybe once every 6 months to a year. I frequently google the topic but always seem to come up blank for an example or ideas on how to model your application.

Lambda/Sierra20:04:44

@jdkealy This tends to be specific to each use case. I recommend contacting Cognitect for support and recommendations.

jdkealy21:04:34

hmm yeah i don't really have budget to hire the big guns

jdkealy21:04:43

ahhh cool not bad