The node-q
module seems to be losing its connection or for some reason returning undefined
from
queries after a random amount of time. This goes away when the server is restarted.
This is a workaround that creates a pool with new connections every 30 seconds, so there can't be any
stale connections that don't work.
Supports k for querying with a connection it from a pool. Also handles ks (without parameters).
var qpool = ; qpool