Re: [PHPLIB] Re: [PHP3] persistent data From: Gary Bickford (garyb <email protected>)
Date: 03/30/00

Kristian Koehntopp wrote:

> Storing sessions in MySQL will effectively store them in server
> memory, unless you chose your MySQL buffer size near zero. Using
> MySQL adds some overhead due to context switches and
> interprocess communication, but if you connect using
> "localhost", MySQL will usually use a Unix Domain Socket or
> Windows Named Pipe instead of an TCP/IP Socket to communicate,
> which is much, much faster. On Linux, Unix Domain Socket speeds
> approach shared memory speed for small session sizes.
>

Kristian,
What if the mysql server is on another host, all by itself? In that case you
wouldn't have the context switch, but you would have the network overhead.

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.