First is better?
I think the second of those that uses .reconnect is worse because it opens the DB connection before the process forks into ruby thus incuring more cost; I think the .establish_connection is key because it makes the connection ready, but doesn't actual make any connection to the db.
What does the .clear_active_connections do?
|