-
Notifications
You must be signed in to change notification settings - Fork 144
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
Slow Query #165
Comments
Hi @PaddyLock, please list technical details of your installation:
Please be very very granular in your breakdown so that someone can get context of the scenario and see whether we can reproduce your issue. |
Hi @ratatatKE here are the details
MySQL 5.5.53 hosted on AWS RDS db.m4.xlarge Server is a Docker instance: nginx, php 7.2. I am running the docker instance locally and connecting to the RDS database externally. All other DB connections run a lot faster. It's just the api key check that shows in the profiler as being slow. |
I am using api-guard in the normal way. When I look at the query times in the debug toolbar, the api-guard query is always tagged as slow:
select * from
api_keyswhere
key= '0b0c7be24c74c79c7efe7568b770749f1599cf60' and
api_keys.
deleted_atis null limit 1
Time = 184.12ms
Why is the query so slow?
What can I do to speed it up?
If I run the query direct on my database then it runs very quickly.
The text was updated successfully, but these errors were encountered: