Re: Always use master server inside a transaction

2017-06-20 Thread Jeremy Evans
On Tuesday, June 20, 2017 at 12:40:43 PM UTC-7, Mark Allen wrote: > > Hello, I'm getting race conditions which seems to be caused by read > replicas. Is there a way to configure Sequel to always use the master > server inside a DB.transaction block? I know there exists DB.with_server, > but I'm

Always use master server inside a transaction

2017-06-20 Thread Mark Allen
Hello, I'm getting race conditions which seems to be caused by read replicas. Is there a way to configure Sequel to always use the master server inside a DB.transaction block? I know there exists DB.with_server, but I'm hoping to avoid updating our entire codebase, and having to remember to