Is it possible to make a bulk update for inventory on Magento 2?
Updating one by one throughout StockItemInterface is too slow.
Is it possible to make a bulk update for inventory on Magento 2?
Updating one by one throughout StockItemInterface is too slow.
2
Answers
Sure! You should use a csv file with updated product data and do import using Magento import tool.
Since Magento 2.3 you can use new Multi-Source Inventory (MSI) which provides Bulk APIs for main source management operations, for example, the one you mentioned here is https://github.com/magento-engcom/msi/blob/2.3-develop/app/code/Magento/InventoryApi/Api/SourceItemsSaveInterface.php