Skip to content

#24376 update save/load query building logic, check definition of columns us… #24609

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

Closed
wants to merge 2 commits into from
Closed

#24376 update save/load query building logic, check definition of columns us… #24609

wants to merge 2 commits into from

Conversation

pierzakp
Copy link

@pierzakp pierzakp commented Sep 15, 2019

…ed in conditions and prepare their values properly

Description (*)

This PR is proposing changes which are casting condition types according to the column definition type during select/update, which will be improving performance especially on int type indexes, currently, in many cases, it is passed as a string, in result index is not used.

Fixed Issues (if relevant)

  1. Poor performance on sales order update - string to integer #24376: Poor performance on sales order update - string to integer

Manual testing scenarios (*)

  1. turn on query logging, or view in mysql queries being ran
  2. update an order
  3. look at query
  4. entity_id will be int

Questions or comments

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)

…ed in conditions and prepare their values properly
@m2-assistant
Copy link

m2-assistant bot commented Sep 15, 2019

Hi @pierzakp. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

* @param string $table
* @return array
*/
protected function _getColumnDefinition($column, $table)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, we are not allowed to add new protected methods to the @api classes according to our Backward Compatible Development Guide

@ghost ghost assigned sidolov Sep 16, 2019
@sidolov
Copy link
Contributor

sidolov commented Sep 30, 2019

@pierzakp , I am closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for the collaboration!

@sidolov sidolov closed this Sep 30, 2019
@m2-assistant
Copy link

m2-assistant bot commented Sep 30, 2019

Hi @pierzakp, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants