On Friday, August 24, 2012 6:29:35 AM UTC-7, azi wrote:
>
> Thanks Jeremy for the reply. Now let's say I go for the cron. So, what's 
> the way to go about it?
> Let's say my db wait_timeout is 10 secs and I have set connection handling 
> parameter to queue and I max no of allowed connections in the pool is 10. 
> Should running a cron every 8-9 secs that makes a dummy query to the 
> database 10 times handle this problem?


That should work if the cron job sends 10 queries:

  10.times{DB.get(1)} 

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/v2Mt0rGn7-YJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to