Closed ssipos90 closed 5 years ago
Also, I have a question, how would you optimize to run some update query on many models? Reading from the docs "A lot of viewmodels can slow down the denormalization process!", how would you tackle if you have to update multiple models?
There is a useAsQuery function, see readme
Haven't read all the comments in the readme (talk about RTFM...).
Thanks!
Hi,
I am implementing a tree structure based on nested set and when adding a node in the tree, some other nodes need updates. What I have in mind is handling the domain event in 2 view builders, one adding the node and one updating the other nodes but the problem is I can't specify in the query attribute of the viewBuilder the ID of the tree for example.
On my mind only using a function for the query attribute would do the trick.