Re: Re: how dod you get to do multiple mysql queries concurrently?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 25, 2008 7:42 PM, Per Jessen <per@xxxxxxxxxxxx> wrote:
>
> > Try pcntl_fork() to create a child process for each query.
> > Each child can make it's own MySQL connection.
>
> Hmm, interesting idea.  I wonder if that'll work under apache?
>
You have to compile with --enable-pcntl to use it.

P.S.
If your queries take >30 second to complete I would suggest
you do some sql optimizations or try to cache as much data
as possible.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux