Zach Daniel @zachdaniel.dev Β· Jun 14

Now that AshPostgres supports `MERGE`, we can finally have `Ash.update_many/4` in #AshFramework 😎. This allows you to do many row-wise updates each with their own unique input. This differs from `Ash.bulk_update/4` which updates a query or a set of records with *one* set of inputs. πŸ‘‡

21 likes 1 replies

?

Replies

Zach Daniel Β· Jun 14

This might not seem that cool, but try hand-rolling this in a re-usable way with all of the various features that Ash supports (atomics, expression-based-updates, lifecycle hooks, etc.) and you'll get it πŸ˜‚ This can be used for all kinds of purposesπŸ‘‡