Open ncalexan opened 6 years ago
Some more context in #815. I think either this or #647 are needed to do even a fairly naive top-sites list (which just finds the top N most visited urls) would need to order by count, either as a :order (desc ?numVisits)
where there's a [(count ?visit) ?numVisits]
, or as a more direct :order (count ?visit)
.
Mentat allows to order results; Datomic does not. When expressing "least or greatest in a group" style queries, the fact that we can't manipulate the
max
ormin
outside of the find spec is limiting. That is, it's not easy to ask for "the 10 most recently used items" or whatever.I think we might be able to bind scalars to achieve this. That is, we might find that
is generally useful.