geoff schrieb:
This may be one of those really obvious questions, but is is 'safe' to
create multiple db connection from a wxpython app?

I have an app allows the user to collect a bunch of data.
When they are finished, the data needs to be packaged up a put into PostgreSQL.

I would like to launch 5-6 worker threads to do the processing and
then update the database.
Can each of these python threads have it's own db connection -- or
perhaps my question is really - is it 'safe' for each of these threads
to have it's own connection ?

Yes, this is safe (as pgdb.threadsafety == 1 is indicating).

-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to