On Oct 8, 2015, at 6:19 AM, bret curtis wrote:
Thanks for the reply! I actually did open a few lowball tickets on TxMongo yesterday -- the package doesn't specify the minimum required versions for mongo or twisted.
I did some tests yesterday on PyMongo, and it seems like using it in deferToThread is safe. I also ran some simulations on staging under a heavy load; no exceptions, everything passes, data is stored correctly. The current pymongo "client" appears to be a threadsafe connection pool, and I can just grab a connection from it when needed in a thread. Woo Hoo!
If the next version of this tool stays in Python, we'll definitely need to use TxMongo. In the current design, we're already deferred to a thread and would have to restructure too much to use TxMongo.