Skip to content

Optimize GetStockItemData service to avoid repeating SHOW TABLE queries #2561

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

Merged
merged 1 commit into from
Sep 17, 2019
Merged

Optimize GetStockItemData service to avoid repeating SHOW TABLE queries #2561

merged 1 commit into from
Sep 17, 2019

Conversation

ishakhsuvarov
Copy link
Contributor

Description (*)

Service \Magento\InventoryIndexer\Model\ResourceModel\GetStockItemData makes redundant SHOW TABLE queries in situation where Magento is working in single stock mode. This does not make any sense and may be safely refactored to execute this check only on custom stocks.

Fixed Issues (if relevant)

  • Not reported

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@ishakhsuvarov ishakhsuvarov merged commit f4f97c3 into magento:2.3-develop Sep 17, 2019
ishakhsuvarov added a commit that referenced this pull request Nov 22, 2019
…-service

Optimize GetStockItemData service to avoid repeating SHOW TABLE queries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant