-
Notifications
You must be signed in to change notification settings - Fork 171
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
postgres issuing request to master for every query #79
Comments
FYI Here is a relevant stack trace of where the active? call is coming from: |
Fixed by #87 |
It seems with the postgres adapter that every single request generates a SELECT 1 query to master which increases the latency greatly on my app since the master is across the internet. This is because it calls ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::active? which does a SELECT 1 to check whether the connection is alive. Is there any know workaround for this? Monkey patching that method to just return true resolves the issue in development, but not sure that's such a good solution.
The text was updated successfully, but these errors were encountered: