Skip to content

Conversation

@ofir-ov
Copy link
Contributor

@ofir-ov ofir-ov 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.
@lovelydinosaur
Copy link
Contributor

Fair enough, yeah. Thanks!

lovelydinosaur added a commit that referenced this pull request Feb 4, 2015
Prefetching the user object when getting the token in TokenAuthentication
@lovelydinosaur lovelydinosaur 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.

2 participants