Magento CE 2.2巨大的目录索引问题

时间:2018-07-20 06:31:09

标签: mysql indexing magento2

已更新为最新的Magento 2.2.5

索引: catalogsearch_fulltext 从未完成。

目录大小:-

Store View: 10
Category: 33K 
Products: 300K 

以下索引需要大量时间(2 + hr)才能完成:

catalog_product_category
catalog_product_attribute

并且后续索引永远不会完成

catalogsearch_fulltext

也使用来自Mirasvit的Elastic Search。

Totak Mysql数据库大小=〜30 + GB

仍然没有索引

的结果

1 个答案:

答案 0 :(得分:0)

This is happening because of multiple store view, is actually easy to manage; in Magento 2.2.5, indexers are scoped and multi-threaded to support reindexing in parallel mode. This feature reduces processing time. It parallelizes by the indexer’s dimension and executes across multiple threads. This means that you can catalogsearch_fulltext can be run in parallel mode: the following command runs the Catalog Search Fulltext indexer across three threads:

MAGE_INDEXER_THREADS_COUNT=3 php -f bin/magento indexer:reindex catalogsearch_fulltext

了解更多https://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-index.html#view-indexer-status