Magento Reindex Products

南笙酒味 提交于 2019-12-12 09:17:48

问题


Recently I ran into a problem regarding Re-index in Magento.

My store has around 40,000 products and If I change a status of a single product, changes are not reflected on frontend as it needs reindexing of all Indexes.

Moreoever reindexing takes a hell lot of time (around an hour) and I am thinking of a permanent issue.

What does "Save on Update" mode in Reindex specifies ? Does it help in reindexing while saving the product ?

Whats the difference between manual update and update on save ?

Please help.

Thanks in advance.


回答1:


Use the "Update On Save" re-indexing mode, it will do re-index on the fly for that single product you have saved.




回答2:


I assume you mean "Update on Save" when you say save on update, also called as "realtime" mode which triggers the re-indexing of product data every time the product has been saved / updated.

Basically in Magento there are only two modes of re-indexing "Update on Save" (Realtime) and "Manual". Their names speak their mode of behavior quite clearly.

In your case, as you have huge amount of products in your store, do the re-indexing through Magento SHELL commands like the following which in turn saves you a lot of time.

SSH to your store and go to shell folder inside your magento root and re-index one by one or all in one shot

    php indexer.php --reindex  catalog_product_flat
    php indexer.php reindexall



回答3:


The magento manual (http://docs.magento.com/m2/ce/user_guide/system/index-management-manual.html)

States:

Set Actions to “Reindex Data.”

Its too bad the options are not available! Do you see those options in your admin pages? If not, is there a reason why it might not show up?

I would like to do update on save, but this is not really practical. I imported a large number of products from CSV.

I tried running the re-indexer from the command line, but by shell directory is missing.

magento missing shell directory

Well, it looks like I am fresh out of ideas! Maybe I should just pay Varien to run Magento Enterprise for me. Afterall, re-indexing is a bit complicated, isn't it?



来源:https://stackoverflow.com/questions/15174649/magento-reindex-products

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!