Skip to content
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

Price Indexer fails with large catalogs #2210

Closed
ishakhsuvarov opened this issue Apr 25, 2019 · 0 comments
Closed

Price Indexer fails with large catalogs #2210

ishakhsuvarov opened this issue Apr 25, 2019 · 0 comments
Milestone

Comments

@ishakhsuvarov
Copy link
Contributor

Preconditions (*)

  1. Magento with MSI is installed and configured in a single-stock mode.
  2. Large performance profile generated

Steps to reproduce (*)

  1. Run reindex with large profile applied

Expected result (*)

✅Success

Actual result (*)

❌DB Query is executed enormously long time.

Possible Solution

Product Price Indexer depends on stock index. Because of this ModifySelectInProductPriceIndexFilter plugin was introduce, which modifies original query to use inventory_stock_* tables.

By current design, inventory_stock_1 table is not a real table but a MySql VIEW, which may perform significantly slower in specific cases, like the one described above. One of the possible solutions, confirmed to be solving the issue, is adding conditional logic to the plugin, which does not allow usage of the VIEW when Inventory is operating in single-stock mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants