Magento 2 Indexing: Modes, Reindex, and Fixes

Magento 2 Indexing: Modes, Reindex, and Fixes

The storefront is crawling, the catalog pages load half their products, and System > Index Management in Magento 2 is a wall of orange “Reindex Required” statuses. A merchandiser swears the SKUs are in stock, the price rules look fine, and cron is running. This is where most Magento 2 indexing problems land in a developer’s lap, and the cause is almost never random.

Indexing is how Magento (Adobe Commerce) turns raw catalog, price, and stock data into ready-made tables that the storefront reads, and a reindex rebuilds those tables. When you need to reindex Magento 2, the command takes seconds to type, and the time goes into finding which indexer is behind the symptom and deciding what to do when a full rebuild runs all night.

Overview

  • Magento 2 indexing transforms raw catalog, price, and inventory data into flat tables so the storefront reads fast instead of computing values on every request.
  • There are two index modes, update on save and update by schedule, and choosing the right one is the single biggest lever on reindex stability under load.
  • How long a full reindex takes depends on catalog shape: with Magento’s own indexers we measured 50 minutes on 53,000 products and 9 h 37 min on 421,000 products, and the most common slowdowns have documented fixes.

What is Magento 2 indexing?

Magento 2 indexing is the process of collecting catalog, pricing, and inventory data and writing it into optimized index tables that the storefront can read directly. Instead of recalculating prices, stock, and category membership on every page request, Magento reads the precomputed result, which is what keeps category and product pages fast at scale.

Each indexer watches a specific data domain. When source data changes, that data needs to be reflected in the index tables before shoppers see it. How and when that happens depends on the index mode, which is the part most teams get wrong.

Index modes: update on save vs update by schedule

Magento 2 has two index modes, and the difference between them decides how much load reindexing puts on your server and how fresh your storefront data is. Update on save rewrites the relevant index tables immediately whenever data changes, so the storefront is always current but every save carries the reindex cost in real time. Update by schedule batches those changes and processes them through cron, using MySQL triggers and the Mview changelog to track only what actually changed (Adobe Commerce Developer documentation).

For any catalog beyond a few hundred SKUs, update by schedule is the safer default. It spreads reindex work over cron runs instead of blocking an admin save or an API import, and it is the mode that keeps large stores responsive during bulk updates.

This default has moved in Adobe’s direction. As of Magento 2.4.8, new indexers default to update by schedule, and the Customer Grid indexer now supports both modes, defaulting to update by schedule where it was previously update on save only (Adobe Commerce release notes and index management documentation). On any version, bin/magento indexer:show-mode lists the mode of every indexer, so check it rather than assume.

๐Ÿš€ Quick takeaway

Update on save reindexes immediately and adds real-time server load. To see how indexer changelogs and cron fit into overall database load, read our guide to Magento database optimization. Update by schedule batches changes through cron and is the right choice for most production catalogs. Magento 2.4.8 makes update by schedule the default for new indexers.

What are the main Magento indexers?

Magento 2 comes with a set of core indexers, each responsible for one slice of storefront data. Knowing what each one does, and its code for the command line, makes it far faster to diagnose which index is behind a given symptom.

  • Category Products (catalog_category_product) and Product Categories (catalog_product_category): map which products belong to which categories and the reverse, driving category listing pages.
  • Product Price (catalog_product_price): precomputes final prices, including catalog price rule results, per customer group and website.
  • Product EAV (catalog_product_attribute): indexes filterable and searchable product attributes.
  • Stock (cataloginventory_stock) and Inventory (inventory): reflect stock status so out-of-stock logic and salable quantity stay accurate.
  • Catalog Rule Product (catalogrule_rule) and Catalog Product Rule (catalogrule_product): apply catalog price rules to the products they target.
  • Catalog Search (catalogsearch_fulltext): builds the search index the storefront search reads from.
  • Customer Grid (customer_grid): keeps the admin customer grid current.

Adobe Commerce adds a few of its own, such as Sales Rule (salesrule_rule) for cart price rules and the target rule indexers behind related product rules.

When a storefront symptom appears, it almost always maps to one of these. Missing products in a category point to the category and product indexers. Wrong prices point to Product Price or Catalog Rule Product. Stale search results point to Catalog Search, and our guide to Magento 2 search not working covers the other reasons search comes back empty.

How to reindex in Magento 2 (admin and CLI)

You can reindex from the admin or the command line. In the Magento admin panel, go to System > Index Management, select the indexers showing “Reindex Required”, choose Invalidate index from the Actions list, and submit. Core Magento has no button that runs the reindex itself: the admin marks the indexers as invalid, and the indexer_reindex_all_invalid cron job, scheduled every minute, rebuilds them on its next run. This is the route to take when you do not have shell access, as long as cron is running.

For real control, use the command line. The core indexer commands available in current versions (2.4.7 and later) are:

bin/magento indexer:info
bin/magento indexer:status
bin/magento indexer:reindex
bin/magento indexer:reset
bin/magento indexer:show-mode
bin/magento indexer:set-mode {realtime|schedule}
bin/magento indexer:set-status
bin/magento indexer:show-dimensions-mode
bin/magento indexer:set-dimensions-mode

Here realtime is update on save and schedule is update by schedule (Adobe Experience League, Manage the indexers). To switch every indexer to schedule mode, run bin/magento indexer:set-mode schedule, then confirm with indexer:show-mode.

On large catalogs, parallel reindexing shortens full reindex time. It is controlled by the MAGE_INDEXER_THREADS_COUNT environment variable, for example MAGE_INDEXER_THREADS_COUNT=3 php -f bin/magento indexer:reindex catalogsearch_fulltext. The Catalog Search Fulltext and Category Product indexers are built to split the work by store view, but in Magento 2.4.8 they run one store at a time until that variable is above 1, the reindex runs from the command line, and PHP’s pcntl extension is installed. The Product Price indexer can run in parallel too, once you split it by website and customer group with bin/magento indexer:set-dimensions-mode catalog_product_price website_and_customer_group. When reindex repeatedly fails or hangs despite correct mode and configuration, that is the point to bring in Magento support rather than keep restarting cron.

๐Ÿš€ Quick takeaway

In the admin, choose Invalidate index under System > Index Management and let cron rebuild it. From the CLI, indexer:reindex rebuilds on the spot, indexer:set-mode schedule batches work through cron, and MAGE_INDEXER_THREADS_COUNT above 1 runs large reindexes in parallel.

Known indexing issues and fixes

Beyond mode and configuration, a handful of issues come up again and again on production stores. These are the ones our team has diagnosed repeatedly, with the fixes that resolved them.

Products disappearing from categories during reindex

This shows up in older Magento 2 versions, where products briefly or persistently drop out of category pages while reindex runs. It happens for a few reasons: indexers that do not use a replica table to stage data before swapping it into the main table, older indexers that delete data from the index table before writing the new data without batching the work, and shared indexer processes such as category-product and product-category writing to the same table at the same time.

Adobe resolved these in the MDVA-30977 series of quality patches, which address shared indexes, add batching to the configurable inventory and price indexers, and add more replica usage. Adobe lists MDVA-30977 for Magento 2.3.0 to 2.4.1. A related patch, MDVA-40550, fixes missing products during reindexing on 2.3.5 to 2.4.3, and Adobe scheduled that fix for 2.4.4. Both install with Adobe’s Quality Patches Tool. If you are seeing this on an older version, apply the patch rather than working around the symptom.

Catalog rule reindex taking too long

Slow scheduled reindex of catalog rules is usually a sign of how the rule conditions are built. In Magento 2.4.8, each condition adds its own sub-query to the product selection and its own check for every product on every website, so reindex time grows with the number of conditions on a price rule.

For example, instead of a single rule such as SKU is IN ..., ..., ..., teams sometimes build a long set of individual rules such as SKU is X, SKU is Y, SKU is Z, .... This is a common case, and we have seen too many conditions on price rules push an incremental scheduled reindex past half an hour, or many hours for a full reindex. Because the indexers share one cron group, a slowdown on one can delay or crash reindexing for the rest. Indexing is only one of the reasons a Magento site gets slow. Consolidating conditions into IN-style rules is the fix.

Adobe Commerce 2.4.8 also changed what happens when a rule is saved: saving a catalog price rule now reindexes only the affected products, where earlier versions invalidated the indexers (Adobe Commerce 2.4.8 release notes).

Configurable product price reindex taking too long

This happens on Magento 2.4.3 and earlier when there are many stores and many variants on products. One known cause is a poorly formatted WHERE condition in the Configurable Price indexer, which hurts query performance when out-of-stock product display is turned on.

The method involved is:

Magento\ConfigurableProduct\Model\ResourceModel\Product\Indexer\Price\Configurable::fillTemporaryOptionsTable

The relevant conditions are:

        if ($this->isConfigShowOutOfStock()) {
            $select->join(
                ['si' => $this->getTable('cataloginventory_stock_item')],
                'si.product_id = l.product_id',
                []
            );
            $select->where('si.is_in_stock = ?', Stock::STOCK_IN_STOCK);
        }
        // ...
        if ($entityIds !== null) {
            $select->where('le.entity_id IN (?)', $entityIds);
        }

That produces a SQL query with a filter like this:

WHERE (si.is_in_stock = 1) OR (si_parent.is_in_stock = 0) AND (le.entity_id IN (...)

The grouping is wrong. Rewriting it so the OR is parenthesized correctly fixes the query:

WHERE ((si.is_in_stock = 1) OR (si_parent.is_in_stock = 0)) AND (le.entity_id IN (...))

From 2.4.4, Magento builds the configurable options query in a separate class (OptionsSelectBuilder) and fillTemporaryOptionsTable no longer exists, so this fix applies to stores on 2.4.3 and earlier.

These issues are common and their fixes are uncomplicated, yet many developers leave them in place because they cannot tell where the slowdown is coming from. Knowing which indexer to look at, as covered above, is half the fix.

๐Ÿš€ Quick takeaway

Three issues account for most production indexing complaints: products dropping from categories on older versions (fixed by Adobe’s MDVA-30977 and MDVA-40550 patches), slow catalog rule reindex from too many rule conditions (fixed by consolidating into IN-style rules), and slow configurable price reindex on 2.4.3 and earlier from a mis-grouped WHERE clause.

When the fix is a code change, such as a backported patch for an indexer bug, you can describe it to Ari in chat, the AI agent for Magento. Ari builds it on a copy of your store, so the live storefront keeps selling while it is tested.

Ari chat on a Magento store: a change requested in plain words and built on a copy of the store
Ari, the AI agent for Magento: a change is requested in chat and built on a copy of the store.

Index management best practices

Once the known issues are out of the way, a few habits keep indexing stable in the long run. Run all indexers in update by schedule mode on production so reindex work batches through cron instead of blocking saves and imports. Monitor cron health, because update by schedule is only as reliable as the cron that drives it, and a stalled cron silently leaves indexes stale. Use parallel reindexing with MAGE_INDEXER_THREADS_COUNT for large catalogs so full reindexes finish inside a maintenance window.

A store that reindexes slowly usually has wider performance debt, and the fixes overlap, which is why our Magento performance optimization work treats index health as one input among database tuning, caching, and frontend delivery. Reindexing does not require a cache flush, and our guide to the Magento full page cache covers when one is needed. On the frontend side, JS bundling addresses a different bottleneck that compounds with slow indexing on the storefront. For the broader operational picture, our guidance on keeping a Magento store stable puts index management in context with the other moving parts.

scandiweb is the world’s #1 most certified Adobe Commerce agency, with 894+ Adobe certifications and 2,100+ eCommerce projects delivered since 2003. The patterns above are the causes our team resolves again and again on the stores we support.

How long should a reindex take?

A full reindex can take a few minutes or most of a night, and the shape of the catalog decides which. Search and category indexes are built per store view, and prices per website and customer group, so the same products take longer as stores, groups, and price rules grow. With Magento’s own indexers, we measured 50 minutes on a 53,000-product test store and 9 h 37 min on a 421,000-product catalog.

Catalog shapeWhat was reindexedTime with Magento’s own indexers
53,000 products, 2 websites, 9 store views, tuned databaseFull reindex of the catalog indexers, search included50 min 27 s
Same storeCatalog search alone38 min 52 s
421,000 products, copy of a multi-store retail catalog, Adobe Commerce 2.4.5Full reindex of five indexers, search not included9 h 37 min
Same catalogProduct attributes (Product EAV) alone5 h 48 min
Same catalogCategory products alone2 h 24 min
Same catalogProduct prices alone54 min
Same catalogCatalog price rules alone (both rule indexers)29 min 41 s
Same catalogStock alone48 s
Full reindex times measured with Magento’s own indexers, by catalog shape

Source: scandiweb measurements with Magento’s own indexers, one full reindex per indexer and setup, November 2026. Aleksandrs Mokans, Solutions Architect at scandiweb, measured the 421,000-product run on November 5, 2026.

Which indexer takes the most time depends on that shape. On the test store with nine store views, catalog search took 38 min 52 s of the 50 min 27 s, about three quarters. On the 421,000-product catalog, product attributes took 5 h 48 min, about 60% of the total. Stock stayed under a minute on both.

To time your own store, run bin/magento indexer:reindex with one indexer code at a time. Magento prints how long each rebuild took in hours, minutes, and seconds. If your store has one store view, a small catalog, and a full reindex that finishes in minutes, there is nothing to fix here.

๐Ÿš€ Quick takeaway

Time each indexer on a staging copy with bin/magento indexer:reindex and one indexer code before you change anything, and start with the slowest one.

When a full reindex takes hours

A full reindex that runs for hours usually has causes you can check before touching the server. Most come down to catalog shape, price rule conditions, the index mode, cron, or parallel threads that never start. Work through them and time each indexer as you go, so you know which change made the difference.

  • Every store view, website, and customer group adds index rows, as the section above shows, so store views and customer groups nobody uses still add time to each full reindex.
  • Catalog price rules with many single-value conditions slow the rule indexers, as described in the known issues above. If rules stop applying to prices altogether, see our guide to catalog price rules not working.
  • Update on save during imports and bulk updates triggers a reindex for every save. Update by schedule batches that work through cron.
  • Cron falls behind. In update by schedule, changes wait in changelog tables until the index cron group runs, and Magento’s three indexer cron jobs share that one group.
  • Parallel reindexing never starts when PHP’s pcntl extension is missing or MAGE_INDEXER_THREADS_COUNT is not set above 1.
  • A reindex that fails part way through can leave products missing from categories and search until the next successful run, which our guide to products not showing on the frontend covers.

Our guide on how to speed up Magento reindexing goes through these fixes one by one.

Tuning Magento is a fair first step. A bigger server still runs the same slow work, so when the tuning is done and a full reindex still takes hours, what is left is the indexers themselves. Expedio Indexers, which we build at scandiweb, replaces Magento’s own indexers with ones written in Go and writes the same index data, so the theme, extensions, and admin stay as they are. On a copy of a 421,000-product retail catalog on Adobe Commerce 2.4.5, a full reindex of five indexers took 9 h 37 min with Magento’s indexers and 1 h 1 min with Expedio Indexers (benchmark details). It doesn’t fix indexers stuck on bad data, cron scheduling, or a broken extension, which need a diagnosis, and it doesn’t make pages faster for shoppers, which is the job of Expedio Theme. A store with one store view, a small catalog, and a five-minute reindex doesn’t need it.

๐Ÿš€ Quick takeaway

Before you resize the server, check store views and customer groups, price rule conditions, index mode, cron, and thread count, then time each indexer. If a full reindex still runs for hours after that, look at the indexers themselves.

FAQ

How does indexing work in Magento 2?

Magento 2 indexing reads source catalog, price, and inventory data and writes it into flat index tables. The storefront then reads those precomputed tables instead of recalculating values on every request, which keeps category and product pages fast. Each indexer covers one data domain and updates either immediately or via cron, depending on its mode.

What are the index modes in Magento 2?

There are two: update on save and update by schedule. Update on save rewrites index tables immediately when data changes, adding real-time server load. Update by schedule batches changes through cron using MySQL triggers and the Mview changelog. Update by schedule is the recommended mode for production catalogs and is the 2.4.8 default for new indexers.

How do I reindex in Magento 2 from the admin?

Go to System > Index Management, select the indexers showing “Reindex Required”, choose Invalidate index from the Actions list, and submit. Core Magento has no button that runs the reindex: the admin marks the indexers as invalid, and the indexer_reindex_all_invalid cron job rebuilds them on its next run, scheduled every minute. If cron is not running, the indexers stay on Reindex Required.

How do I reindex Magento 2 without SSH?

Use the admin route above: choose Invalidate index in System > Index Management and let cron rebuild the indexers. That depends on a working cron job, so if the indexers stay on Reindex Required, add Magento’s cron job in your hosting control panel or ask your host to run bin/magento indexer:reindex for you. Some third-party extensions add a Reindex action to the admin grid. Test one on a staging copy first.

How do I reindex from the command line?

Run bin/magento indexer:reindex to reindex everything, or pass a specific indexer name to target one. Use indexer:status to check state, indexer:set-mode schedule to switch to scheduled mode, and indexer:reset to clear a stuck “working” status before reindexing again.

What does “One or more indexers are invalid” mean?

It is an admin message Magento shows when at least one indexer has the status invalid, which Index Management lists as Reindex Required. The message asks you to make sure the Magento cron job is running, because the indexer_reindex_all_invalid cron job rebuilds invalid indexers every minute. If the message stays, check cron first, then run bin/magento indexer:status and reindex the indexers it lists as invalid.

Why is my Magento reindex taking so long?

The usual causes are running in update on save mode on a large catalog, catalog price rules built from many single conditions, or a large number of store views and product variants stressing the configurable price indexer. Switch to schedule mode, consolidate rule conditions, and enable parallel reindexing to recover speed.

What is parallel reindexing in Magento 2?

Parallel reindexing splits a full reindex into several processes, set by the MAGE_INDEXER_THREADS_COUNT environment variable. In Magento 2.4.8 it applies to the Category Products and Catalog Search indexers, and to Product Price once its dimensions mode is changed, only for a full reindex from the command line with PHP’s pcntl extension installed.

Indexers stuck on Reindex Required, or a full reindex that runs into the morning? Tell us what Index Management shows and our Magento team will find the indexer behind it.

Share on:

Share on X Share on LinkedIn Share on Facebook

You may also like