Fork me on GitHub

what are the options for (reagent-)reactive datascript on the frontend? posh ( seems unmaintained.


hadn’t heard, will check it out, thanks!


tbh there aren't a lot of amazing solutions.


I think homebase is just a wrapper around datascript and reagent and exported for JS applications


I say "amazing" as in, most of these use datascript and IME the performance of datascript is not good enough for most UI apps I've worked on. posh tries to address this by doing some complicated diffing internally to avoid triggering every query on change, but it doesn't end up being as robust as one would want and still can end up doing a lot of expensive calculations on every db transaction


if you do find something that works for you I'd be very curious to learn more


homebase doesn't support pull queries, so it was out of the question. The project already uses (re-)posh, so will start by fixing posh, it cureently fails on tracking reverse relations.


looking at the posh internals, it looks smart, the impl could be optimized a lot. If I understand it correctly, all the queries will register their own matchers, having 100 queries will cause 100x matching, which doesn't scale.


matchers could be grouped by their common parts, kinda like trie, would make it scale better.


... and with some smart incremental effect diffing, one wouldn't have to re-run the queries when a match is found, just patch the result with the new datoms.


but, will update here if I manage to cook up come improvements.