-
-
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
Add index on salesrule_coupon #2959
Conversation
what query is being run? |
Yes, I forgot to copy/paste: |
The column UNIQUE KEY `UNQ_SALESRULE_COUPON_CODE` (`code`), According to this stackoveflow, it's unnecessary to index it again. I am not sure how to interpret Blackfire output, is stackoverflow wrong? [edit]
From https://www.oreilly.com/library/view/high-performance-mysql/0596003064/ch04.html |
Damned, you are right. Now I remember that the store use a module that removed the unique key to allow multiple coupon with same code. |
We already merged it. |
I was meaning #1110 :-D |
Description
We have 220,000 coupons in
salesrule_coupon
.This PR add an index on
code
column, like #2447.Here is a before/after with Blackfire:
Contribution checklist