On Mon, Oct 26, 2015 at 7:02 PM, Scott Klarenbach <[email protected]> wrote:
> I realize this wasn't a design goal of datascript, and am just looking for > insights into how it might be possible. I guess a more fundamental question > is: how does a datomic peer know when the segments to complete its query are > not present in cache? And can we emulate this in datascript? Remember that datomic query always happens against a specific database at a specific basis-t. There shallow hierarchy of indices that index the particular segments associated with that t. So you know exactly what segments you need, and can compare that with what's in the cache. Emulating this is Datascript would be a big undertaking and you're better off using datomic, or figuring out how to integrate datascript into datomic. You'd have to reinvent the transactor (you want multiple peers committing transactions right?) and all the associated coordination and indexing. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
