kickstarter/slave_pools — pull request #1 by ktheory (2013-03-04 16:42:21+00:00)
Title: Better handle slow queries

If a query is killed because it exceeds the connection's `read_timeout`, we *don't* want to re-run that query on master.

So this changes re-raises those timeouts instead of rescuing them.

(This change, together with setting a `read_timeout` in our database.yml, will prevent slow queries from swamping the master databases)