Subject RE: [firebird-php] pconnect & disconnect & FK
Author Alan McDonald
> 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

I didn't find that - especially when you take the human process into account
and the normal latency of the internet.
If I did a thousand connect/disconnect Vs a pconnect scenario maybe.
Also at one stage, there was a bug in pconnect which prevented pconnect from
using connections already in place. It would create another connection
anyway and the unused one eventually timed-out.
This may be fixed now - or maybe it never was a real bug in the first
instance. I think I read in the help file - I can't remember now. In any
case I can't determine any difference in performance on my websites using p
and not p so I stick to not p.
Alan


>
> Alan McDonald wrote:
>
> >
> > I never use pconnect - that's faster.
> > Alan
> >
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>