-
Notifications
You must be signed in to change notification settings - Fork 248
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
Fix Performance Degradation in StockItem Indexation #91
Labels
Comments
maghamed
changed the title
Indexation mechanism adaptation
Fix Performance Degradation in StockItem Indexation
Sep 13, 2017
larsroettig
pushed a commit
that referenced
this issue
Sep 30, 2017
larsroettig
pushed a commit
that referenced
this issue
Sep 30, 2017
larsroettig
pushed a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 1, 2017
maghamed
added a commit
that referenced
this issue
Oct 4, 2017
maghamed
added a commit
that referenced
this issue
Oct 4, 2017
maghamed
added a commit
that referenced
this issue
Oct 4, 2017
magento-cicd2
pushed a commit
that referenced
this issue
Mar 23, 2021
MC-41122: Inventory reservation compensation does not handle partial …
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Several improvements need to be done for current indexation mechanism. As currently, we have a performance issue which leads to the whole re-indexation when any changes in SourceItem Qty happened (which is wrong).
1) Currently
inventory_source_item
table is used in mview configuration.https://github.com/magento-engcom/magento2/blob/develop/app/code/Magento/Inventory/etc/mview.xml#L11
And system observes for
source_id
column.But expected behavior should be an observation of
source_item_id
column. So our algorithm for\Magento\Inventory\Indexer\StockItem\StockItem::executeList
should be likesource_item_id
out_of_stock
statussource_item_id
list after filteringmultiple insert on update
Now our behavior (get stocks, after that get sources) looks is familiar to full reindex
2) Also we need to track changes in the
inventory_source_stock_link
table. In this case, we will work withsource_id
list. So maybe we need to create separate index processor which will be work withsource_id
.The text was updated successfully, but these errors were encountered: