Fork me on GitHub
#datascript
<
2017-07-30
>
thedavidmeister13:07:29

@plexus i have something custom where i put every single e, a, v, tx, added into a db by shipping tx-data for each transact through sente

thedavidmeister13:07:05

and also enough information in each row to do the access filtering you're talking about

thedavidmeister13:07:23

and a timestamp actually

thedavidmeister13:07:04

so then when the user loads the page i group rows on e, a and order by tx, timestamp, returning a single result for each

thedavidmeister13:07:57

a and v need to be pr-str to work nicely with my db and sente

thedavidmeister13:07:24

but i read-string and pass to d/datom on the client for each, and then inject them all into a fresh db

thedavidmeister13:07:48

i actually then generate filtered dbs from that to run queries against to display the UI

plexus16:07:29

Thanks @thedavidmeister. That sounds interesting, and somewhat similar to what Datsync does. You don't happen to have some code you could share?

plexus16:07:13

I'm taking Datsync for a test drive now, I think I might be able to cherry pick the bits I need, and bring my own filtering to the mix. Will see how it goes.