-
Notifications
You must be signed in to change notification settings - Fork 506
-
Notifications
You must be signed in to change notification settings - Fork 506
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
find_by_sql with UPDATE performed on read-only slave #157
Comments
I'm not convinced that's a problem on octopus since I'm checking if there is an alternative on active record to that case ;) |
Agreed that an UPDATE should not be send through a find_by_sql, however it also doesn't work using It would be nice if Octopus would switch connection to the master database for update, update_all, reload, delete, delete_all, destroy and destroy_all. Basically same implementation as the In addition, given everything is pumped through execute and exec_query, those two could be hooked into and switch to master if I wouldn't mind whipping up a patch for this. |
@lawrencepit I would be happy to merge |
Closing due to lack of movement but I would be happy to merge, just mention this issue on the PR. |
Hi, guys!
Ran into problem with delayed_job_active_record, particulartly this query is executed on read-only slave:
Since had no response at delayed_job repo, maybe You are willing to comment could it be an Octopus issue (maybe ActiveRecord's ?).
Issue in delayed_job repo:
collectiveidea/delayed_job_active_record#34
The text was updated successfully, but these errors were encountered: