Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
On Fri, 12 Mar 2010 16:49:04 +, "John P." wrote: > On Fri, 12 Mar 2010 11:22:04 -0500, "D'Arcy J.M. Cain" > wrote: >> On Fri, 12 Mar 2010 15:56:12 + >> "John P." wrote: >>> Sorry but its not really an option for me with PostgreSQL. Thanks > anyway. >> >> Why? It's your best option. An

Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
On Fri, 12 Mar 2010 11:22:04 -0500, "D'Arcy J.M. Cain" wrote: > On Fri, 12 Mar 2010 15:56:12 + > "John P." wrote: >> Sorry but its not really an option for me with PostgreSQL. Thanks anyway. > > Why? It's your best option. Any other solutions that you can't use > before people give you mor

Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread D'Arcy J.M. Cain
On Fri, 12 Mar 2010 15:56:12 + "John P." wrote: > Sorry but its not really an option for me with PostgreSQL. Thanks anyway. Why? It's your best option. Any other solutions that you can't use before people give you more suggestions? -- D'Arcy J.M. Cain | Democracy is three wolves

Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
Sorry but its not really an option for me with PostgreSQL. Thanks anyway. I wonder if there is a simple way of just queueing the run of a function make it only run once at a time but by multiply threads? :) On Fri, 12 Mar 2010 00:54:57 -0800, Jonathan Gardner wrote: > For lots of transactions ru

Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
Hi, Im programming a simple webcrawler with threading for the fun of it, which is inserting the data fetch into a mysql database, but after continuously cause my mysql server to produce error during database queries (i assume its cause because of the many execution at the same time.) the scipt pr