Horizontal sharding, gzip schema cache, database rake tasks
Greetings, all! Daniel here, together with my pup ( woof!) bringing you the latest news in Rails.
The good folks at GitHub have done an incredible amount of work to support multiple databases in Rails. This week brings horizontal sharding. Rails applications can now connect to and (manually) switch between multiple shards.
Katrina continues to work on the schema cache, this time by adding gzip support for both the YAML and the Marshal serialization strategies. This can come in handy when trying to deploy particularly large schemas in constrained environments.
It is now possible to run rails db:schema:dump, rails db:schema:load, rails db:structure:dump, rails db:structure:load and rails db:test:prepare on a specific database. This was previously only possible for rails db:create, rails db:drop, and rails db:migrate. Excellent work on your first few commits to Rails, Kyle!
I included this one for the commit message more than for the code change itself. The benchmark taught me a bit about Action Controller, Action View, and how to write a good benchmark.
This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
> [View in browser](https://t.goodbits.io/f/a/arDkwXypA4qJBkOPg1AiDA~~/AAB5kwA~/RgRgPwVlP0RDaHR0cHM6Ly9hcHAuZ29vZGJpdHMuaW8vZW1haWxzL2M1NzgwYzViLWQ0YzctNDExZi04YzliLTY3ZWVkZjc0NjIyMlcDc3BjQgoAJGeAXF57W3NFUhpyYWlscy13ZWVrbHlAem9ldGhpY2FsLmNvbVgEAAAAAA~~)