On Mon, Apr 20, 2009 at 7:43 AM, Lee Connell <[email protected]> wrote: > Thanks James, I'll give it a go. Whenever deferToThread is run it creates a > new thread correct? And within my deferToThread function is where I make my > database calls?
Not quite. deferToThread() passes the job off to one of the threads in the reactor's thread pool. So repeated jobs are likely to reuse the same threads (and hence database connections). Depending on the app, you might want to lower the minimum thread pool size to increase the likelyhood that a connection will be reused. James. -- storm mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
