Implement :db/isComponent #282

Open
opened 2020-08-06 16:57:49 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:57:49 +00:00 (Migrated from github.com)

As of v0.8.1, Mentat doesn't really support :db/isComponent true. This ticket tracks adding support.

This means that retracting [e a v] where a is :db/isComponent true retracts [v _ _] and so on, recursively.

This is one of the cases where the entities transacted aren't a superset of the datoms actually transacted, similar how :db/retractEntity. That means there's non-obvious interactions with transaction watchers, and thus with caches (and, in the future, materialized views).

As of [v0.8.1](https://github.com/mozilla/mentat/releases/tag/v0.8.1), Mentat doesn't really support `:db/isComponent true`. This ticket tracks adding support. This means that retracting `[e a v]` where `a` is `:db/isComponent true` retracts `[v _ _]` and so on, recursively. This is one of the cases where the entities transacted aren't a superset of the datoms actually transacted, similar how [`:db/retractEntity`](#650). That means there's non-obvious interactions with transaction watchers, and thus with caches (and, in the future, materialized views).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#282
No description provided.