-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Added two indexes on sales_flat_order and sales_flat_order_item tables #2447
Conversation
Tested on 1million sales_flat_order_items rows on my local machine and took only a few seconds (10ish, also considering that cache was cold) so I guess it will not create troubles even to big stores in production. |
app/code/core/Mage/Sales/sql/sales_setup/upgrade-1.6.0.10-1.6.0.11.php
Outdated
Show resolved
Hide resolved
app/code/core/Mage/Sales/sql/sales_setup/upgrade-1.6.0.10-1.6.0.11.php
Outdated
Show resolved
Hide resolved
app/code/core/Mage/Sales/sql/sales_setup/upgrade-1.6.0.10-1.6.0.11.php
Outdated
Show resolved
Hide resolved
app/code/core/Mage/Sales/sql/sales_setup/upgrade-1.6.0.10-1.6.0.11.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my suggestion ... when i reset version in core_resource
table an run update again ...
Error in file: "/var/www/html/app/code/core/Mage/Sales/sql/sales_setup/upgrade-1.6.0.10-1.6.0.11.php" - SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'IDX_SALES_FLAT_ORDER_CUSTOMER_EMAIL'
…0.11.php Co-authored-by: sv3n <github-sr@hotmail.com>
it should be ok now |
This solution was already discussed and agreed in issue #384 I just created the PR into the Mage_Sales module since in 2022 I don't see the need for a new dedicated module for this specific task (as discussed in the previously linked issue).