Re: Datomic query question

2015-06-04 Thread Wilker
Thank you very much Francis, that was very helpful :) On Thu, Jun 4, 2015 at 1:21 PM Francis Avila wrote: > (This question is more appropriate to the datomic group: > https://groups.google.com/forum/#!forum/datomic) > > Datomic/datalog queries always perform aggregation as a last step so the > r

Re: Datomic query question

2015-06-04 Thread Francis Avila
(This question is more appropriate to the datomic group: https://groups.google.com/forum/#!forum/datomic) Datomic/datalog queries always perform aggregation as a last step so the results of aggregation are unavailable to the :where clause. In other words, what you want is impossible with a sing

Datomic query question

2015-06-04 Thread Wilker
Hi, good morning. I have this query here: [:find ?track (count ?lessons) :where [?t :track/name ?track] [?lessons :lesson/track ?t] ] A lesson has a track (so a track can be on multiple lessons), and with this query I can return the track names and the number of lessons where this track is be