-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not reindex catalog_product_flat for disabled stores #3251
Conversation
app/code/core/Mage/Catalog/Model/Resource/Product/Flat/Indexer.php
Outdated
Show resolved
Hide resolved
wow, this could be a great improvement, how did it slip for so many years... sorry for reformatting the "continue", I also prefer the one line but PHPCS doesn't :-( |
Message after enable store needs to be added. |
I'm not an indexer expert, but now the reindex request message also appears for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full reindex: from 02:37 (before) to 01:23 (after).
Notice is displayed after enabling a store view.
I dropped catalog_flat
tables and I reindexed multiple times, all seems good for front.
This probably also can be done for catalog_category_flat
.
Moreover there are multiple Mage::app()->getStores()
.
merging per 1green and 2grays |
Description (*)
skip reindex product flat tables for disabled store view
Questions or comments
We have one store with 6 language stores, of which only one is enabled. The reindexing of the product flat tables takes unnecessarily long. The idea is to skip the reindexing of disabled stores. I don't think this will create any problems because these tables are not actually used on the frontend. Are there any potential issues with this approach?
We should add a message indicating that a reindex is required when the store is re-enabled, similar to what happens with the index catalog_product_attribute.