Fork me on GitHub
#datascript
<
2019-01-16
>
cheatex09:01:12

Hi. AFAIK datalog and datomic have no tools to handle sequences. I wondering if datascript has some sequences support?

danielstockton09:01:49

@cheatex What kind of tools?

cheatex11:01:55

@danielstockton Basically anything that gives me ability to add entity as first/last and later get query result in the that order. Without writing my own library and performance penalty.

danielstockton15:01:04

Then no, I think both datomic and datascript return sets, and you're expected to do any sorting in your own code

danielstockton15:01:08

There are multiple indexes, so first/last doesn't really have any meaning until you sort

danielstockton15:01:37

What performance penalties are you referring to? In datomic/datascript the result of a query has to fit in memory.

Niki23:01:12

neither do sql databases

👍 5
Niki23:01:27

you need an additional “order” attribute everywhere