Comment 5 for bug 487076

Revision history for this message
Nikoleta Verbeck (nerdynick) wrote :

Closing this one out as your other Bug ticket should resolve your question about this matter.

Bug #488928 - https://bugs.launchpad.net/pysqlpool/+bug/488928

In general based on your code example you need to not keep track of the PySQLQuery object outside of the thread, but ask for a new 1 per thread. This will cause PySQLPool to open more connections as threads need them.