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
increase mysql load in 2.0.14.2 version #16265
Comments
That's schema cache. If caching schema is enabled, this query should not happen more than once. Check your config. |
yes, schema cache is enable but it takes too much time to load page for first time, actually in previous yii version i didnt have this problem. this query makes down my website |
@samdark please reopen the issue |
Would you please try code from master first? |
same problem was happened :( |
my application has thousand subdomain and each of them has own database, |
As a workaround, you can try warming up these DBs one by one. That's one time action and should not cause issues as long as cache is filled. |
this query in 2.0.13.1 version of yii2 has no problem and this query took 0.0004(s) in mysql,
but query of version 2.0.14.2 took 12.64(s) time in mysql. |
What's your MySQL version btw? |
5.7.22 |
I have the same problem and I didn't have problem in 2.0.13.1. |
Hi,
i was updated my core to 2.0.14.2 version,
then mysql load was increased while cache is enabled,
it seems this query makes it
how to solve it?
The text was updated successfully, but these errors were encountered: