I like this lib and will definitely use it if it reaches prod quality. thanks for making it
I am a little sceptical that a hash index {eid {k v}} could possibly beat indexed datascript in the general case? e.g not trivially small databases, and not 'get large portion of all the rows' type queries. @huxley any magic I am missing? Aren't value queries going to have to scan the the whole 'table'?
nested map can be faster due to the possibility of limiting the iterated elements, @danstone
[(datascript-query) (dx-query) (fast-dx-query)]
;; clj => [182.98 685.15 71.05] - in ms
for a normal query doxa is ~5x slowerBy the way, initially the goal was not to race with datascript
at all, rather easy interop with re-frame
and seamless data synchronisation with firestore
using the re-frame app-db is why I like this lib. using datalog instead of specter for subs is a nice architecture. it does mean losing some perf because equals? can’t use identical? but that’s ok for 80% of my use cases