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

Addresses Incorrect stock versus sales. #364 #372

Closed
wants to merge 3 commits into from

Conversation

googlygoo
Copy link
Contributor

@googlygoo googlygoo commented Nov 14, 2017

Looking to address this issue I have implemented two solutions. This solution and #372 where a lot of work from taken from #189. Each solution has there merits. I prefer this solution with one of the biggest reasons being it's simplicity and staying closer to what was originally being done in Magento.

The second solution moves the update logic to a Sql query, the benefit is that it all stock item records are updated with a single query, the down side is that that event that gets fired cataloginventory_stock_item_save_after may have different information to that that is in the database.

Wilhelm Ellmann and others added 2 commits November 29, 2017 13:42
This is a possible solution to fixing the incorrect stock
when under high load, high concurrency on a single item
and slow payment gateways.
be closer aligned with `save()` as there are more events and index's
that needed to be run that was previously missed/over simplified.
@googlygoo googlygoo closed this Aug 2, 2018
@googlygoo googlygoo deleted the v2-issue-364 branch August 2, 2018 17:53
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