Database sharding and Rails

前端 未结 6 1600
南方客
南方客 2021-02-02 01:35

What\'s the best way to deal with a sharded database in Rails? Should the sharding be handled at the application layer, the active record layer, the database driver layer, a pr

6条回答
  •  無奈伤痛
    2021-02-02 02:09

    To my mind, the simplest way is maintain a 1:1 between rails instances and DB shards.

提交回复
热议问题