Ask an accountant how she can tell two ledgers agree and she’ll reach for a pencil: every entry in one gets a tick against the same entry in the other, line by line, much the way you’d compare two tables in MySQL. Magento (Adobe Commerce) keeps ledgers of its own. They’re its index tables, ready-made copies of prices, category listings, stock and product attributes that the store reads instead of working them out on every page view. An indexer is the job that rebuilds one of those tables, and a reindex is the rebuild.
When an indexer gets patched, or swapped for a faster one, the totals are easy to check. The storefront looks the same and the row counts line up. Nobody has shown yet that one price, for one customer group on one website, stayed where it was. So how do you prove the new indexer writes the same rows as the old one, and which differences don’t count?
What “the same index data” means
An indexer’s output is the set of rows it leaves in its tables when the run ends. Two indexers write the same index data when, table by table, every row on one side has a row with the same key on the other, every value in it matches, and neither side has extra rows. Row order doesn’t count, and neither do the tables Magento keeps for its own bookkeeping.
Compare the main tables, the ones the storefront reads. A full reindex builds its result in a _replica table and renames it into place, so after the run _replica holds the previous index. Leave out the _replica, _tmp and _temp tables, the _cl changelog tables, indexer_state, mview_state and cron_schedule, which only record what the indexers did.
What scandiweb published about its own comparison
scandiweb has published one result on this question, for Expedio Indexers, its replacement for Magento’s own indexers, written in Go: on the same machine and the same data, both setups produced the same index data. The pages give the scope of that check and leave the method out.
The benchmark page describes the runs: a full reindex of each indexer, once with Magento’s own indexers and once with Expedio Indexers. The catalog was a copy of a multi-store retailer’s catalog on Adobe Commerce 2.4.5, with 421,000 products and catalog price rules, and five indexers ran, without catalog search. About 7.3 million index rows were compared with Magento’s own output, row by row, and none differed. Aleksandrs Mokans, Solutions Architect and Team Lead at scandiweb, measured it on November 5, 2026.
The second result comes from production. Since November 16, Expedio Indexers has run the nightly indexing job on an Adobe Commerce catalog with about 421,000 products and 16 stores. The job takes about 43 minutes, down from 3 hours 26 minutes with Magento’s own indexers, and the launch post reports zero errors since.
The pages don’t say which tables and columns the 7.3 million rows came from, or whether scheduled updates were compared too. Extension and custom indexers are added per project, so a comparison covers only the indexers that ran. With the Done for you package, the Expedio team checks the data on the buyer’s own catalog before switching it on. Below is a check you can run yourself, on Expedio Indexers, a patched core indexer or any other replacement.
๐ Quick takeaway
The published result covers full reindexes on one catalog. Scheduled updates and your own extension indexers need a check of their own, and the steps below cover both.
Which tables each Magento indexer writes
Each indexer writes one or more tables in the Magento database, and each table has a key: the columns that identify a row. List the tables and their keys before you copy or compare anything. These are the tables Magento 2.4.8 writes, taken from each module’s db_schema.xml and its indexer code.
| Indexer (ID) | Tables it writes | Compare on |
|---|---|---|
Product EAV (catalog_product_attribute) | catalog_product_index_eav, catalog_product_index_eav_decimal | every column (the primary key includes the value) |
Product Price (catalog_product_price) | catalog_product_index_price (or one table per dimension), catalog_product_index_tier_price, catalog_product_index_website | entity_id, customer_group_id, website_id (website_id alone for the website table) |
Catalog Rule Product and Catalog Product Rule (catalogrule_rule, catalogrule_product) | catalogrule_product, catalogrule_product_price, catalogrule_group_website | the unique keys, without the auto-increment id |
Category Products and Product Categories (catalog_category_product, catalog_product_category) | catalog_category_product_index_store1, _store2 and on, one per store view | category_id, product_id, store_id |
Stock (cataloginventory_stock) | cataloginventory_stock_status | product_id, website_id, stock_id |
Inventory (inventory, Multi-Source Inventory) | inventory_stock_<stock id>, one per stock | per stock table |
Catalog Search (catalogsearch_fulltext) | OpenSearch or Elasticsearch, one index per store view | product ID per store view, outside MySQL |
SHOW TABLES LIKE 'catalog_category_product_index_store%' lists the per-store category tables. The price index is one table in the default dimensions mode and one table per dimension after a switch to website or customer group mode. bin/magento indexer:show-dimensions-mode shows the mode, and both setups must run in the same one or the tables won’t line up.
Product EAV holds attribute values stored the EAV model way, such as color or size. Catalog Search writes to the search engine, outside MySQL, so its check runs through the search engine’s API. For what each indexer does, see how Magento indexing works.
1. Start from one database and freeze it
Both indexers have to read exactly the same source data, on the same day, with nothing else writing to the database. Use one staging copy of production and keep the Magento version, configuration and price dimensions mode identical for both runs. Then disable cron for the store and put it in maintenance mode.
Cron is the main risk: a scheduled update, an import or an admin save between the runs changes the source tables, and the diff then measures that change instead of the indexer. The calendar is the other one: the catalog rule and price indexers write rows that depend on the date (step 5), so two correct runs a day apart disagree on those rows.
The simplest order uses one copy. Run Magento’s own full reindex for each indexer in the table, snapshot, run the new indexer’s full reindex on the same data, and snapshot again. Magento’s command prints how long each indexer took, which is worth keeping next to the diff:
bin/magento indexer:reindex catalog_product_price
2. Snapshot the index tables after each run
Copy every table from the list into a separate schema as soon as a run ends, so the next run can’t overwrite it and the comparison works on frozen data. Use one schema per run on the same server, for example snap_magento and snap_new.
CREATE DATABASE snap_magento;
CREATE TABLE snap_magento.catalog_product_index_price
LIKE magento.catalog_product_index_price;
INSERT INTO snap_magento.catalog_product_index_price
SELECT * FROM magento.catalog_product_index_price;CREATE TABLE ... LIKE copies the columns and indexes, and INSERT ... SELECT copies the rows. Repeat it for each table, then fill snap_new the same way after the second run. Snapshots made the same way on the same server also share a row format, which matters for checksums in step 4.
Start the comparison with row counts. For the price index, count per website and customer group on both snapshots:
SELECT website_id, customer_group_id, COUNT(*) AS row_count
FROM snap_magento.catalog_product_index_price
GROUP BY website_id, customer_group_id;A count that differs already answers the question for that group and shows you where to look first.
3. Compare two tables in MySQL on the primary key
To compare two tables in MySQL with confidence, look for three kinds of row: rows only in Magento’s table, rows only in the new one, and rows with the same key but a different value. Each kind needs its own query. Zero rows from all three, on every table in the list, means the data is the same.
On MySQL 8.0.31 and later, and on MariaDB, EXCEPT returns the rows of the first query that the second doesn’t have. Run it in both directions:
SELECT * FROM snap_magento.catalog_product_index_price
EXCEPT
SELECT * FROM snap_new.catalog_product_index_price;
SELECT * FROM snap_new.catalog_product_index_price
EXCEPT
SELECT * FROM snap_magento.catalog_product_index_price;EXCEPT drops duplicate rows and needs the same number of columns on both sides. A changed price shows up as one row in each direction, so the output doesn’t say which column moved. A join on the key does:
SELECT a.entity_id, a.customer_group_id, a.website_id,
a.final_price AS magento_final, b.final_price AS new_final
FROM snap_magento.catalog_product_index_price a
JOIN snap_new.catalog_product_index_price b
USING (entity_id, customer_group_id, website_id)
WHERE NOT (a.price <=> b.price AND a.final_price <=> b.final_price
AND a.min_price <=> b.min_price AND a.max_price <=> b.max_price
AND a.tier_price <=> b.tier_price AND a.tax_class_id <=> b.tax_class_id);Every value column in the price index can be NULL, so the query uses <=>, the NULL-safe equal. With a plain =, a NULL on either side makes the whole comparison NULL, and the query skips that row without a warning. On an older server without EXCEPT, find missing rows with a LEFT JOIN on the key and WHERE b.entity_id IS NULL, once in each direction.

๐ Quick takeaway
EXCEPT finds rows that exist on one side only, so run it in both directions. A JOIN on the key with <=> is the query that names the column that changed.
4. Use checksums to find the difference, then diff the rows
Checksums answer one question fast: do two tables differ? They don’t say where, and a match leaves a small chance of error. On tables with millions of rows, use them to narrow a difference down to a small range of keys, then run the step 3 queries on that range.
CHECKSUM TABLE gives one number per table, and MySQL documents its limits. It reads every row under a read lock, and its value depends on the table’s row format, so the same rows in a table created differently can give a different number. Its hash isn’t collision-free either. MariaDB’s notes add that the value will probably change when a table is upgraded to another version. Compare checksums only between snapshots made the same way, and treat a mismatch as a reason to look.
A chunked checksum gets closer. Hash each row, combine the hashes for each range of keys, and compare range by range:
SELECT entity_id DIV 10000 AS chunk, COUNT(*) AS row_count,
BIT_XOR(CRC32(CONCAT_WS('|', entity_id, customer_group_id, website_id,
COALESCE(tax_class_id, 'null'), COALESCE(price, 'null'),
COALESCE(final_price, 'null'), COALESCE(min_price, 'null'),
COALESCE(max_price, 'null'), COALESCE(tier_price, 'null')))) AS h
FROM snap_magento.catalog_product_index_price
GROUP BY chunk;Run it on both snapshots and diff only the chunks where the count or the hash differs. CONCAT_WS skips NULL values, which is why every nullable column is wrapped in COALESCE, and CRC32 returns a 32-bit number, so collisions happen on large tables. When something differs, the chunks point you to a range of 10,000 product IDs to diff. The sign-off itself still needs the step 3 queries on every table.
Checksums and joins read whole tables, and our guide to MySQL settings for Magento covers the buffer pool they need.
5. Leave out the columns that are allowed to differ
Some columns change between two correct runs, and a diff that includes them reports noise. Decide which columns to leave out before you run the diff, and write the list next to the result, so whoever reviews it can see what “the same” covered.
rule_product_idincatalogrule_productandrule_product_price_idincatalogrule_product_priceare auto-increment ids, numbered in the order rows are inserted. Compare those tables on their unique keys and drop the id from the column list.rule_dateincatalogrule_product_pricemoves with the calendar. The catalog rule indexer writes each rule price for yesterday, today and tomorrow, in the timezone of each website’s default store. Run both reindexes on the same day, or compare only the dates both snapshots share.- The price indexer writes
catalog_product_index_websiteagain on every run, with that day’s date for each website and the base currency rate, stored as a FLOAT. Compare it, and expectwebsite_dateto differ between days.
Price columns are a separate case. They’re DECIMAL(20,6), stored exactly to six decimal places, so a gap in the last digit is a real difference. Magento calculates catalog rule prices in PHP and rounds them to two decimals, and a replacement has to round the same way: prices one cent apart on a value that ends in .005 count as a failed check. If your team accepts a tolerance on a column, write it down before the diff, never after you’ve seen the result.
A rule that doesn’t reach the storefront at all is a different problem, covered in catalog price rules that don’t apply.
๐ Quick takeaway
A diff full of catalogrule_product_price rows that differ only in rule_date points to the calendar: check the dates the two reindexes ran before you suspect the indexer.
6. Check full and scheduled reindexes separately
A full reindex and a scheduled update run different code in Magento, so a clean diff after two full reindexes says nothing yet about scheduled updates. The full run rebuilds a replica table and renames it into place. The scheduled run takes changed IDs from a changelog table and applies them in batches, straight into the live table.
A changelog table carries the indexer’s name with a _cl ending, and MySQL triggers write the IDs of changed rows into it. Our guide to faster reindexing shows how full and scheduled reindexes write. To test the scheduled path:
- On both setups, make the same changes through the same route, the admin or one import file: a price and a special price, a product added to a category, stock set to zero, an attribute value used in layered navigation, and a catalog price rule.
- Let each setup apply its backlog. For Magento’s own indexers,
bin/magento cron:run --group=indexruns the indexing cron group. - Compare only when
bin/magento indexer:statusshowsidle (0 in backlog)for every indexer and the replacement reports an empty backlog too. - Snapshot and diff, as in steps 2 to 4.
Then add a third check on the new setup: run a full reindex on the same data and diff it against its own scheduled result. A correct scheduled update leaves the tables exactly as a fresh full reindex would.

FAQ about comparing Magento index tables
How many index rows did scandiweb compare for Expedio Indexers?
About 7.3 million, on the 421,000-product retailer catalog, compared with Magento’s own output row by row, and none differed. Aleksandrs Mokans measured the full reindex runs on November 5, 2026, on the same machine and the same data. The published pages don’t say which tables or columns the count covers.
Is CHECKSUM TABLE enough to prove two MySQL tables are identical?
No. Different checksums almost certainly mean the tables differ, and equal checksums are strong evidence with a small chance of collision. The value also depends on the table’s row format, so identical rows in tables created differently can give different numbers, and it never names a row. Use it to decide where to look, then diff the rows on their key.
Does MySQL support EXCEPT?
Yes, since MySQL 8.0.31, and MariaDB has it too, so both databases Magento 2.4.8 supports, MySQL 8.4 and MariaDB 11.4, can run it. It returns distinct rows from the first query that the second doesn’t have, and both sides need the same number of columns. On older servers, a LEFT JOIN on the key with an IS NULL check does the same job.
Why do catalog rule price rows differ between two reindex runs?
The indexer writes catalogrule_product_price for three dates, yesterday, today and tomorrow in each website’s timezone, and numbers the rows with an auto-increment id. Run both reindexes on the same day, and compare on the unique key (rule_date, website_id, customer_group_id, product_id) with rule_product_price_id left out. The remaining columns should then match exactly.
How do you compare Magento’s catalog search index?
Catalog Search writes product documents to OpenSearch or Elasticsearch, one index per store view, so a MySQL diff can’t see it. Compare the documents for each store view through the search engine’s API: the same product IDs on both sides, and the same values in each field, after both reindexes ran on the same frozen data.
Keep the diff with the decision
To compare two tables in MySQL for an indexer change, you write three short queries per table, and most of the effort goes into the setup around them: one frozen copy, both runs on the same day, the list of tables with their keys, a written list of columns that may differ, and a separate pass for scheduled updates.
When every query returns zero rows, keep the queries, the snapshot names and the results with the go-live decision. The next time someone asks whether the indexer was checked, that record answers the question, and it gives you a ready test for the next patch or Magento upgrade. It’s the accountant’s ticked ledger, filed where the next reviewer can run it again.
If a diff won't come out clean, or your store has extension indexers to add to the list, send us the tables and queries.






























Share on: