Flat catalog copies product and category data into wide “flat” tables to speed up reading. It helped on Magento 1. On Magento 2 it often costs more than it gives, and Adobe deprecated the product flat catalog and recommends keeping it off.
Why it hurts
- The flat tables take a long time to rebuild on large catalogs.
- While they rebuild, category pages can show incomplete product lists.
- Stores with many attributes can hit MySQL’s column limits.
Check if it’s on
In the admin: Stores > Configuration > Catalog > Catalog > Storefront, “Use Flat Catalog Category” and “Use Flat Catalog Product”.
Disable it
bin/magento config:set catalog/frontend/flat_catalog_product 0
bin/magento config:set catalog/frontend/flat_catalog_category 0
bin/magento indexer:reindex
bin/magento cache:flush
Category and product pages keep working, served from Magento’s normal indexes.
Check the storefront
Browse a few categories and filters afterwards. Rarely, a theme or module reads the flat tables directly and shows empty category pages without them. If that happens, turn it back on, then fix or replace that module.
Catch it automatically
MageMonitor checks for this every few minutes as part of its performance checks, and alerts you by email, Slack or webhook the moment it appears, with the exact commands to fix it. See MageMonitor for Magento 2.
