You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm doing database maintainance on my master-master setup I update my memcache to $cache['db'] = 'other_server' (whichever one I'm not working on)
I'm currently trying to do this by wrapping the call in a with_master, and then updating the connection inside that block (ActiveRecord::Base.connection == blah), though I'm actually using a ActiveRecord::Base.configurations cache to avoid reconnecting, but I think that doesn't cause issues.
It seems to work 99% of the time, but occasionally a query slips through. Any suggestions on how to handle this better?
Thanks for a great project!
The text was updated successfully, but these errors were encountered:
When I'm doing database maintainance on my master-master setup I update my memcache to $cache['db'] = 'other_server' (whichever one I'm not working on)
I'm currently trying to do this by wrapping the call in a with_master, and then updating the connection inside that block (ActiveRecord::Base.connection == blah), though I'm actually using a ActiveRecord::Base.configurations cache to avoid reconnecting, but I think that doesn't cause issues.
It seems to work 99% of the time, but occasionally a query slips through. Any suggestions on how to handle this better?
Thanks for a great project!
The text was updated successfully, but these errors were encountered: