question about default read/write to master or follower

22 views
Skip to first unread message

vhu...@reflektive.com

unread,
Jan 3, 2019, 1:57:58 PM1/3/19
to Octopus - Database sharding for ActiveRecord
if i have a setting like this in the initializer file, will all read/write with AR default using master?
```
  Octopus.environments        = [Rails.env]
  Octopus.config[:replicated] = true
  Octopus.config[:fully_replicated] = false

  Octopus.shards = {
    followers: follower_shards,
    master: ActiveRecord::Base.connection.config
  }
```
Reply all
Reply to author
Forward
0 new messages