Re: Database Connections - permanent or something else?
| From: | Ignacio Vazquez-Abrams | Date: | Tue, 16 Jan 2001 17:17:24 +0000 |
| Subject: | Re: Database Connections - permanent or something else? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34858@lists.php.net to get a copy of this message | ||
On Tue, 16 Jan 2001, Sam wrote:
> Hi,
>
> I have several web pages that are built with php and mySQL.
> I use a new connection for each script.
> Should I be using a permanent connection? Or is there a better way around
> this?
>
> Regards,
> Sam Rose
>
Persistent connections are more efficient in that they don't need to open the
connection each time. Unless you have an overwhelming need to limit concurrent
connections to your MySQL server, you should probably be using persistent
connections.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>