You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Magento with MSI is installed and configured in a single-stock mode.
Large performance profile generated
Steps to reproduce (*)
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.
The text was updated successfully, but these errors were encountered:
Preconditions (*)
Steps to reproduce (*)
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 useinventory_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.The text was updated successfully, but these errors were encountered: