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

Performance improvements for selecting django user #33825

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

gherceg
Copy link
Contributor

@gherceg gherceg commented Nov 30, 2023

Product Description

Technical Summary

Includes commits from the following PRs:

Feature Flag

Safety Assurance

Safety story

Automated test coverage

QA Plan

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@gherceg gherceg changed the base branch from master to hotfix-deploy November 30, 2023 23:26
@gherceg gherceg merged commit 232682e into hotfix-deploy Dec 1, 2023
13 checks passed
@gherceg gherceg deleted the hotfix/django-user-performance-improvements branch December 1, 2023 00:08
@@ -1170,7 +1170,7 @@ def get_django_user(self, use_primary_db=False):
queryset = User.objects
if use_primary_db:
queryset = queryset.using(router.db_for_write(User))
return queryset.get(username__iexact=self.username)
return queryset.get(username=self.username)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you say a bit about how you determined that this change was safe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at #33824 and feel free to ask any questions there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants