My Rails App makes quite a few calls (all different queries)
to our Postgres DB. Each time I make a find_by_sql method call,
a connection opens and then stays idle. Of course, after 500
or so of these idle postgres processes running, the DB refuses
to let me make any more (and I can’t really add more to the
How do I make sure these connections get closed after each query?
I’m guessing it has something to do with remove_connection?