DB API and thread safety

Robin Haswell rob at digital-crocus.com
Fri Jan 20 05:54:31 EST 2006

Hey guys

I've been reading http://www.python.org/peps/pep-0249.html and I don't
quite get what level of thread safety I need for my DB connections.

If I call db = FOOdb::connect() at the start of my app, and then every
thread does it's own c = db.cursor() at the top, what level of thread
safety do I need to avoid threads stepping on each other? Hopefully the
answer to this question will get me oriented enough to understand the
other options :-)



More information about the Python-list mailing list