Skip to content

Conversation

tkn98
Copy link
Contributor

@tkn98 tkn98 commented Jul 28, 2016

Array keys cast to integer on string SKUs that could represent a PHP integer, however the Mysql comparison is string based for which - to prevent a cast in Mysql - it needs string quotes. These string quotes then need again the $sku as string.

This is fixed by casting to string.

Background: If you import many records with SKU that are numeric strings, Mysql performance is impacted negatively.

Array keys cast to integer on string SKUs that could represent a PHP integer, however the Mysql comparison is string based for which - to prevent a cast in Mysql - it needs string quotes. These string quotes then need again the $sku as string.

This is fixed by casting to string.

Background: If you import many records with SKU that are numeric strings, Mysql performance is impacted negatively.
@tkn98
Copy link
Contributor Author

tkn98 commented Jul 28, 2016

Reference: Reported against 2.1 in Enterprise Gold Support in Ticket #03187206

@tkn98
Copy link
Contributor Author

tkn98 commented Aug 1, 2016

In my opinion at this time Magento developers are considering this as planning to fix for a future release of Magento and I have the feeling that they are not able to give a time frame on which release it would be but it should be in the next two ones.

@hostep
Copy link
Contributor

hostep commented Mar 7, 2017

I believe this PR may be closed, since it was already resolved like @maghamed says over here.

@vrann vrann self-assigned this Mar 25, 2017
@vrann vrann added this to the March 2017 milestone Mar 25, 2017
@vrann
Copy link
Contributor

vrann commented Mar 25, 2017

@tkn98 Thank you for contribution, closing as fix is already present in the mainline.

@vrann vrann closed this Mar 25, 2017
@tkn98
Copy link
Contributor Author

tkn98 commented Mar 27, 2017

@vrann: Thanks for the update and taking care. This one was long-awaited in one of our projects.

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.

5 participants