xsc / claro

Powerful Data Access for Clojure

Home Page:http://xsc.github.io/claro/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Union Projection on Mutation

xsc opened this issue · comments

The union projection, internally, creates a seq of the partial projections it wants to eventually merge. This means, that the initial value will appear multiple times within the tree, causing the Mutation constraint of "there can only be one per resolution" to fail.

This could be fixed by allowing multiple identical mutations to appear within the tree (which makes the aforementioned constraint kinda useless) or by implementing a special union projection tree node.

(The latter might also address some performance concerns I'm having about the union projection.)