mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added note that persistent connections are suported when using mysqlnd and libmysql.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@276504 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0efb4b9857
commit
b5b2622cc8
1 changed files with 21 additions and 9 deletions
|
@ -1,18 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<chapter xml:id="mysqli.persistconns" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<title>The mysqli Extension and Persistent Connections</title>
|
||||
|
||||
<para>
|
||||
Persistent connection support was introduced in PHP 5.3 for the
|
||||
<literal>mysqli</literal> extension. Support was already present in PDO
|
||||
MYSQL and ext/mysql. The idea behind persistent connections is that a
|
||||
connection between a client process and a database can be reused by a
|
||||
client process, rather than being created and destroyed multiple
|
||||
times. This reduces the overhead of creating fresh connections every
|
||||
time one is required, as unused connections are cached and ready to be
|
||||
reused.
|
||||
<literal>mysqli</literal> extension. Support was already present in
|
||||
PDO MYSQL and ext/mysql. The idea behind persistent connections is
|
||||
that a connection between a client process and a database can be
|
||||
reused by a client process, rather than being created and destroyed
|
||||
multiple times. This reduces the overhead of creating fresh
|
||||
connections every time one is required, as unused connections are
|
||||
cached and ready to be reused.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -99,9 +99,21 @@
|
|||
|
||||
<para>
|
||||
It is possible to switch off the automatic cleanup code, by compiling
|
||||
PHP with <constant>MYSQLI_NO_CHANGE_USER_ON_PCONNECT</constant> defined.
|
||||
PHP with
|
||||
|
||||
<constant>MYSQLI_NO_CHANGE_USER_ON_PCONNECT</constant>
|
||||
|
||||
defined.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
The <literal>mysqli</literal> extension supports persistent
|
||||
connections when using either MySQL Native Driver or MySQL Client
|
||||
Library.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
</chapter>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue