ActiveTableSwitcher
Magento\Catalog\Model\ResourceModel\Indexer\ActiveTableSwitcher
What it does
This class manages the switching of database index tables between active and replica versions in Magento 2.
Developers use this during index operations to ensure zero-downtime reindexing by building new indexes on replica tables, then atomically swapping them with active tables.
It handles table renaming, preserving table comments, and generating replica table names with the '_replica' suffix.
Public Methods
- switchTable()
- getAdditionalTableName()