Hi,
I created a custom Project entity and a 1:n related ProjectTask entity and I added a rollup field "OpenTasks" to the Project entity. Because I want to see immediate updates of the rollup field, I added a plugin executing a CalculateRollupFieldRequest whenever a ProjectTask is created or updated. This is working fine.
But now I want to create/assign some ProjectTasks (based on some templates) automatically to the Project as soon as the Status changes to a specific value. Therefore I added another plugin for the Project entity and handle the Update message. Basically this is also working fine.
But of course with this setup, there are a lot of Create messages (for some projects there might be dozens of tasks) and the rollup field is refreshed very often. I guess performance-wise this is not a good idea. I think it would make to refresh to rollup only after all tasks are created. Is this somehow possible?
Are there other/better approaches to solve my requirements?
Thank you!