I have written a multi threaded code to update db.Number of threads may range from 45-50 or even more.
Getting following error Mysql::Error: Too many connections (Sequel::DatabaseConnectionError) How can I prevent it as in retry until I get a connection. Is setting these parameters would be useful in my scenario :max_connections, :pool_sleep_time, :pool_timeout? I have tried and set up different values like :max_connections=>30, :pool_sleep_time=>0.01, :pool_timeout=>30 and default is I guess :max_connections=>4, :pool_sleep_time=>0.001, :pool_timeout=>5 But still I am getting such errors. Any help is appreciated. Thanks, Ravi -- 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/-/bfTZnf23EAkJ. 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.
