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

[User] Added missing unique indexes on customer.email and emailCanonical #3484

Merged
merged 1 commit into from
Oct 26, 2015

Conversation

peteward
Copy link

Import a million users to your database and you'll really need this index...

user.username and usernameCanonical seem to be nullable? so I haven't added any to this, although customer.email will be where db queries are mainly run against anyway.

@pjedrzejewski
Copy link
Member

@peteward Could you generate a database migration for that change? Thanks!

@pjedrzejewski pjedrzejewski added the Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). label Oct 25, 2015
@pjedrzejewski pjedrzejewski added this to the v0.16.0 milestone Oct 25, 2015
Added important missing unique indexes on customer.email and customer.emailCanonical
@peteward
Copy link
Author

updated

pjedrzejewski pushed a commit that referenced this pull request Oct 26, 2015
[User] Added missing unique indexes on customer.email and emailCanonical
@pjedrzejewski pjedrzejewski merged commit bf04e2a into Sylius:master Oct 26, 2015
@pjedrzejewski
Copy link
Member

Thank you very much Peter! 👍

@okwinza
Copy link
Contributor

okwinza commented Feb 4, 2016

@awerffeli this will be fixed in #4009

At least here i was faster than @pamil :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants