datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
cheatex 2019-01-16T09:26:12.030Z

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

2019-01-16T09:30:49.030400Z

@cheatex What kind of tools?

2019-01-16T09:32:37.030900Z

Do you mean like https://gist.github.com/stuarthalloway/2645453 ?

cheatex 2019-01-16T11:38:55.034500Z

@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.

2019-01-16T15:11:04.035300Z

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

2019-01-16T15:22:08.035800Z

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

2019-01-16T15:26:37.036700Z

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

2019-01-16T23:12:12.037Z

neither do sql databases

👍 1
2019-01-16T23:12:27.037300Z

you need an additional “order” attribute everywhere