Database module & multithreading
jupiter
anil.jupiter9 at gmail.com
Sat Mar 10 10:36:21 EST 2007
On Mar 10, 8:16 pm, Michael Bentley <rmc... at gmail.com> wrote:
> > Thanx for this pointer buddy! I have done my homework. Some Database
> > modules are not actively maintained some modules does not work with
> > Python 2.5. At this moment I am using Sqlite3 which is pretty fast but
> > it dosent allow me to use multi threading so which database module is
> > better in terms of multithreading
>
> Actually, I think sqlite3 just requires that each thread have its own
> connection and cursor.
I tried this approach with
for each new thread
self.c1=sqlite3.connect('urls')
self.c=self.c1.cursor()
check condition
insert if true else ignore
but no success
More information about the Python-list
mailing list