What to Do When Magento Core Indexers Take Too Long? Rewrite Them
Rewriting Magento's price and full-text search indexers without locking queries: cutting an Elasticsearch full reindex on 100k SKUs across 22 store views from 6 minutes down to 30 seconds.
What to do when Magento core indexers take too long? Rewrite them!
This is exactly what I've been working on for a long time, running a lot of experiments, and now the indexation framework is taking shape.
Some of my customers have been using it in production for a while. Recently, I finished a complete rewrite of the price indexer and the full-text search indexer. The new framework is a huge improvement: it doesn't run locking queries during data generation and takes only a fraction of the time.
For example, a full search reindex on 100k SKUs with 22 store views takes only 30 seconds, while the core indexer takes a full 6 minutes (a 12× speedup).
See the follow-up production results in Why MySQL READ COMMITTED Won't Save Magento from Catalog Lock-Wait Timeouts and When a Full Magento Catalog Reindex Runs Faster Than a Single Partial Update.
Dealing with a similar bottleneck in production?
Reach out directly to Ivan Chepurnyi for a performance audit, indexer redesign, or second opinion.