ash icon indicating copy to clipboard operation
ash copied to clipboard

Support bulk creates/updates/destroy

Open zachdaniel opened this issue 5 years ago • 1 comments

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: %{}.

zachdaniel avatar Jun 07 '20 01:06 zachdaniel

Will be useful when supporting bulk actions in ash_postgres. https://www.peterullrich.com/optimize-ectos-insert-all-with-placeholders

zachdaniel avatar Oct 03 '22 03:10 zachdaniel

This should be broken up:

  1. bulk create
  2. bulk destroys
  3. atomic updates
  4. bulk updates

zachdaniel avatar Oct 26 '22 23:10 zachdaniel