title: Database sharding and Rails
body: <p>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 proxy layer, or something else altogether?  What are the pros and cons of each?</p>