mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Implement excision. (#21) #766

Open ncalexan opened 6 years ago

ncalexan commented 6 years ago

My WIP towards excision.

ncalexan commented 6 years ago

You're doing a bunch of stuff with SQL as separate statements, all wrapped in individual implicit transactions.

I expected to see as many of these individual operations wrapped together in a single transaction so that the whole thing is atomic. Is there a reason that's not feasible?

The layer that makes the whole thing atomic is higher up the chain -- it's the Conn that manages all of this. The Conn also needs to be involved to handle transaction watchers and cache invalidation. That's coming shortly.