Magento 2 MSI Inventory Table Bloat Can Silently Degrade Checkout Performance
Magento 2 stores running Multi-Source Inventory (MSI), enabled by default since version 2.4, face a hidden performance issue caused by unchecked growth of the inventory_reservation table. The table stores temporary stock reservation records created when customers add items to their cart, but orphaned entries from canceled orders, failed checkouts, and partial shipments accumulate indefinitely. On stores with moderate traffic, this table can reach millions of rows within months, slowing down every cart operation that queries it. Developers can measure the problem using direct SQL queries and address it by scheduling a nightly cleanup script that removes compensated reservations tied to completed or canceled orders. Optimizing the source selection algorithm used during order fulfillment is also recommended for stores managing multiple warehouses.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in