-
Notifications
You must be signed in to change notification settings - Fork 220
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
skip_schema_queries setting seems to be ignored in development #166
Comments
from what I can see in the source its only handled on "weird dbs" and the handling is funny:
There seems to be no support for postgres for example. |
I think that check is fine since ActiveRecord is setting that
And further down:
So unless I'm missing something |
no its not ok, it simply doesn't work. once postgres is detected this part of the code doesn't execute. those lines are only for 'unknown databases' |
Ah sorry, didn't bother to look at the rest of the file ;-) So there are two issues:
|
still no ;) its hardcoded to |
Damn, I should triple-check my comments before posting ;-) Hard-coding for development doesn't make sense to me at all though, why should I care about the execution length of schema queries which will be cached on production anyway? And they make it hard to notice the actual queries among all the noise. |
I think the motivation is that ignoring schema changes is a heuristic, so |
I can't seem to change the
skip_schema_queries
setting totrue
in the development environment, I tried settingRack::MiniProfiler.config.skip_schema_queries
directly in the initializer and also using aRails.configuration.after_initialize
block, but I still get the schema queries in the profiler output. Is there anything I'm missing? I did restart my server several times and made sure there were no old Ruby processes hanging around.The text was updated successfully, but these errors were encountered: