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

Prefetching the user object when getting the token in TokenAuthentication #2519

Merged
merged 1 commit into from Feb 4, 2015

Conversation

Ofir-Purple
Copy link
Contributor

@Ofir-Purple Ofir-Purple commented Feb 4, 2015

...

Since the user object is fetched 4 lines after getting Token from the database, this removes a DB query for each token-authenticated request.

…tion.

Since the user object is fetched 4 lines after getting Token from the database, this removes a DB query for each token-authenticated request.
@tomchristie tomchristie added this to the 3.0.5 Release milestone Feb 4, 2015
@tomchristie
Copy link
Member

tomchristie commented Feb 4, 2015

Fair enough, yeah. Thanks!

tomchristie added a commit that referenced this pull request Feb 4, 2015
Prefetching the user object when getting the token in TokenAuthentication
@tomchristie tomchristie merged commit d21617f into encode:master Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants