Log in
Model

IndexTableSwitcher

Magento\InventoryMultiDimensionalIndexerApi\Model\IndexTableSwitcher

What it does

This class manages the atomic switching of multi-dimensional inventory index tables in Magento 2.

Developers use this during reindexing operations to safely swap replica tables with active tables, ensuring zero downtime by rotating tables through three states: active, replica, and outdated.

This allows inventory indexes to be rebuilt in the background without affecting storefront operations.

Public Methods

  • switch()