[cx-oracle-users] Thread commits - do other threads get committed? Use Pooling?
Brought to you by:
atuining
From: Chapman, S. <Sco...@pi...> - 2010-11-09 23:29:01
|
I have an application where I want to have multiple threads doing inserts into the database but I don't want each thread's commit to commit the other threads. Commit is done on the Connection object so I don't think I can use a single Connection among multiple threads as a result of this? So connection pooling should be the answer? If I use pooling, do I need to make the Connections threaded=True? (I'm thinking no, because each thread will grab a connection from the pool, begin and commit a transaction and release it's connection back to the pool). All help appreciated. Thanks, Scott This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute, alter or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or without error as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise during or as a result of e-mail transmission. If verification is required, please request a hard-copy version. This message is provided for information purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments in any jurisdiction. |