Trunacate Table `inventory_reservation`
-
03-03-2021 - |
Question
How much risk is to truncate table inventory_reservation
?
After truncate does MSI will work fine or Do i need to bang my head on keyboard !!?
Solution
Truncating reservation table you may break the Salability Quantity calculation for your products. Thus, it's discouraged to apply any changes to this table manually by means of direct SQL queries. Here you can read more about that - https://github.com/magento-engcom/msi/wiki/Salable-Quantity-Calculation-and-Mechanism-of-Reservations
You may run Reservation Cleanup command by CRON to make this table cleaning up periodically. More info about this here - https://github.com/magento-engcom/msi/wiki/CLI-Reference
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange