Fork me on GitHub
#datascript
<
2017-06-08
>
jrychter06:06:14

@misha mostly desktops, although people do use my app on mobile, so I have to make sure that it at least works there (doesn't have to be lightning-fast, though). But I have things like instant search that stress the database a lot — not the search itself (it's indexed), but accessing data for displaying the results.

fabrao17:06:46

Hello all, is there any way to group-by results? Like ["A" ["B" "C"]]?

fabrao17:06:31

like {:father "A" :son "B"} and {:father "A" :son "C"}?

misha20:06:47

@fabrao get list of [[a b c] ...], and then (group-by first my-list-of-abcs), for example

fabrao20:06:38

humm, no direct way?

misha20:06:36

I think no, given that query's :find grammar is:

find-spec                  = ':find' (find-rel | find-coll | find-tuple | find-scalar)

misha20:06:57

maybe there is a way to pass some custom function into a query to do groupping, but I have no experience with this, can't tell