ash
ash copied to clipboard
Support bulk creates/updates/destroy
We'll have to think through this, and making sure it is consistent with the rest of the framework capabilities will be difficult.
Preliminarily, I imagine we will support versions of update/destroy that takes a query instead of a record. In the case of create, it would have to be something like a list of %{attributes: %{}, relationships: %{}.
Will be useful when supporting bulk actions in ash_postgres. https://www.peterullrich.com/optimize-ectos-insert-all-with-placeholders
This should be broken up:
- bulk create
- bulk destroys
- atomic updates
- bulk updates