This article provides best practices for deferred stock updates. The Deferred Stock Update feature is deactivated by default. In times of intensive sales, Magento can defer stock updates related to orders. This feature minimizes the number of operations and speeds up the order placement process.
This option is not devoid of risks. It can only be used when Backorders are activated in the store because this option can lead to negative stock quantities. This feature can also potentially lead to lockouts.
Affected products and versions
You should only implement this feature based on urgent business need. As the Deferred Stock Update can be enabled only when Backorders are allowed the steps are as follows:
- Click Stores > Settings > Configuration > Catalog > Inventory.
- On the Product Stock Options section, set Backorders to a value other than No Backorders. The Use deferred Stock update option appears once you change the value.
- Set Use deferred Stock update to Yes.
- Click Save Config.
- Flush cache by running
php bin/magento cache:flushor go to Magento Admin under System > Tools > Cache Management.