I have a WSGI application. At the beginning of the Python script (before construction of the WSGI handler) I set up a database connection in a globally accessed area. Whenever a request needs to use the database, it just imports the file and grabs this global object.
The database in particular is PostgreSQL and I am using psycopg, which is DB API 2.0 'Level 2 Thread Safe'.
Do I have to worry about different request transactions ruining eachother? Each connection uses its own cursor. A little confused.
Thank you