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

Streamline DB Access #1122

Closed
francsiswanto opened this issue Nov 19, 2019 · 1 comment
Closed

Streamline DB Access #1122

francsiswanto opened this issue Nov 19, 2019 · 1 comment

Comments

@francsiswanto
Copy link

francsiswanto commented Nov 19, 2019

  • Passport version: 5.0
  • Laravel version: 5.6

in my spare time I casually check what laravel/passports do when serving every guarded requests for data query using SQL Profiler, and this is what I can capture:

select top 1 * from [oauth_access_tokens] where [oauth_access_tokens].[id] = '9f4b9808ef8b5fa0afc952184abcea65738fcfc91107ed023819b1dc5efa143ac8aa49d8121fffcb'

select top 1 * from [oauth_users] where [id] = '2'

select top 1 * from [oauth_access_tokens] where [oauth_access_tokens].[id] = '9f4b9808ef8b5fa0afc952184abcea65738fcfc91107ed023819b1dc5efa143ac8aa49d8121fffcb'

select top 1 * from [oauth_clients] where [oauth_clients].[id] = '2'

Real data query is on the fifth. Since these query is always called for every request, can you make it more optimal to only 1 query maybe? Thank you.

@francsiswanto
Copy link
Author

It seems this issue #382 are same AND still no solution yet. I close this issue.

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

No branches or pull requests

1 participant