-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Poor performance on sales order update - string to integer #24376
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
Comments
Hi @asim-vax. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @asim-vax do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento give me 2.6-develop instance |
Hi @irving0mar. Thank you for your request. I'm working on Magento 2.6-develop instance for you |
@magento give me 2.2.6-develop instance |
Hi @irving0mar. Thank you for your request. |
This issue is on Magento 2.3.2 |
Hi @engcom-Charlie. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Further examples of this:
and:
entity_id should not be enclosed in quotes. |
"#mm19pl" |
Hi @pierzakp. Thank you for working on this issue.
|
@magento-engcom-team do you have a link to the commit or PR? |
This issue was fixed by internal team and PR currently in delivery queue |
It's sad that there was no label / information that core team is handling it, waste of my time. |
Already merged into mainline |
@pierzakp there was information about internal ticket created, but i am agree, probably for such cases should be information about progress of internal ticket |
Looks like this is the merge commit (for the people interested): 0a390bb |
There are lots of places in magento code where string is used instead of int when querying by id-fields. You can seen them by first enabling db query log |
@pemann Is that with this commit applied or before? |
@craigcarnell before. My comment was just a remark that there are similar problems all-over magento. Someone should look into this with wider perspective and try to fix them all. |
@pemann my PR was fixing it in all cases have confirmed that after reviewing var/debug/db.log, for update and select statements. Commit mentioned above is fixing it (still think that my PR was a cleaner solution) only for update statements, what about selects?? |
@pierzakp The issue opened for update query, if you have proved measurement that for select queries this will increase performance please add new issue |
@o-iegorov: it looks like a new issue was opened for select queries some days ago: #25199 |
When running a sales order update, the where clause entity_id is a string. It is then comparing a string to an integer and the index is not used.
same issue as #20969 just for a different query.
eg. WHERE (entity_id='99015')
query below:
should finish
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: