【发布时间】:2012-02-25 17:53:52
【问题描述】:
我对无缝宝石有疑问
development:
adapter: jdbcmysql
database: mydb_development
username: read_user
password: abc123
pool_adapter: jdbcmysql
port: 3306
master:
host: master-db.example.com
port: 6000
username: master_user
password: 567pass
read_pool:
- host: read-db-1.example.com
pool_weight: 2
- host: read-db-2.example.com
它应该读取从属权限 [read-db-1.example.com] 吗?但这很奇怪.. 它总是读取到主数据库 [mydb_development] 。
你有什么建议,我应该如何配置这个gem以默认读取到从数据库?
谢谢
【问题讨论】:
标签: ruby-on-rails database gem database-replication