Subject | Re: [firebird-php] pconnect & disconnect & FK |
---|---|
Author | michal.720 |
Post date | 2005-08-15T13:30:15Z |
Hmmm...
According to my tests, pconnect is much more faster than connect. I
don't have exact numbers, but on my notebook (WinXP, Apache2, php5,
Firebird 1.5.x) and some unix/linux machines pconnect() beats connect()
significantly.
It's because (AFAIK) each PHP script doesn't need to wait to connect,
PHP's ibase lib is already connected. And connection is the bottleneck
of each script (a result of my tests).
Thats the reason, why I use pconnect.
Michal
Alan McDonald wrote:
According to my tests, pconnect is much more faster than connect. I
don't have exact numbers, but on my notebook (WinXP, Apache2, php5,
Firebird 1.5.x) and some unix/linux machines pconnect() beats connect()
significantly.
It's because (AFAIK) each PHP script doesn't need to wait to connect,
PHP's ibase lib is already connected. And connection is the bottleneck
of each script (a result of my tests).
Thats the reason, why I use pconnect.
Michal
Alan McDonald wrote:
>
> I never use pconnect - that's faster.
> Alan
>