AF
Ash Framework•4mo ago
kernel

is there a way to perform a bulk update but for individual items?

given an input like [{store_id: 1, some_data: 2}, {store_id: 3, some_data: 9}], can I configure bulk_update to update store 1 with some_data 2, etc etc
3 Replies
kernel
kernelOP•4mo ago
I feel like there should be with read_action or something :thinkies:
ZachDaniel
ZachDaniel•4mo ago
not currently, no One could be added though 🙂 It would have to be an entirely new interface though unfortunately bulk_update means "update X records with the same input" This would be called update_many
kernel
kernelOP•4mo ago
right, for now I've just enum mapped and updated them one by one 😬 once a month for only 4k records is fine I guess 😆

Did you find this page helpful?