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

Added two indexes on sales_flat_order and sales_flat_order_item tables #2447

Merged
merged 4 commits into from
Sep 22, 2022
Merged

Added two indexes on sales_flat_order and sales_flat_order_item tables #2447

merged 4 commits into from
Sep 22, 2022

Conversation

fballiano
Copy link
Contributor

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).

@github-actions github-actions bot added the Component: Sales Relates to Mage_Sales label Aug 18, 2022
@addison74 addison74 linked an issue Aug 18, 2022 that may be closed by this pull request
tobihille
tobihille previously approved these changes Aug 19, 2022
addison74
addison74 previously approved these changes Aug 19, 2022
@fballiano fballiano dismissed stale reviews from addison74 and tobihille via 97b8f23 August 23, 2022 12:54
tobihille
tobihille previously approved these changes Aug 23, 2022
addison74
addison74 previously approved these changes Aug 23, 2022
@fballiano
Copy link
Contributor Author

fballiano commented Aug 23, 2022

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.

addison74
addison74 previously approved these changes Aug 25, 2022
addison74
addison74 previously approved these changes Sep 18, 2022
Copy link
Contributor

@sreichel sreichel left a 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'

@fballiano fballiano requested review from sreichel and removed request for tobihille September 22, 2022 10:23
@fballiano
Copy link
Contributor Author

it should be ok now

@sreichel sreichel merged commit 7358174 into OpenMage:1.9.4.x Sep 22, 2022
@github-actions
Copy link
Contributor

Unit Test Results

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
7 runs  ±0  5 ✔️ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 7358174. ± Comparison against base commit 27447f9.

@luigifab luigifab mentioned this pull request Jan 17, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Sales Relates to Mage_Sales
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add two indexes, in sales_flat_order & sales_flat_order_item
4 participants