svn: /phpdoc/en/trunk/reference/mysqlnd_qc/ changes.xml constants.xml
| From: | Ulf Wendel | Date: | Thu, 15 Mar 2012 15:45:53 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysqlnd_qc/ changes.xml constants.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9905@lists.php.net to get a copy of this message | ||
uw Thu, 15 Mar 2012 15:45:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=324278
Log:
More 1.1.0 changes, new constant MYSQLND_QC_SERVER_ID_SWITCH
Changed paths:
U phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml
U phpdoc/en/trunk/reference/mysqlnd_qc/constants.xml
Modified: phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml 2012-03-15 15:29:27 UTC (rev 324277)
+++ phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml 2012-03-15 15:45:53 UTC (rev 324278)
@@ -74,7 +74,8 @@
<itemizedlist>
<listitem>
<simpara>
- <literal>MYSQLND_QC_SERVER_ID_SWITCH</literal> allows grouping of cache
entries from
+ <literal><link linkend="constant.mysqlnd-qc-server-id">
+ MYSQLND_QC_SERVER_ID_SWITCH</link></literal> allows grouping of cache entries
from
different physical connections. This is needed by PECL/mysqlnd_ms.
</simpara>
</listitem>
Modified: phpdoc/en/trunk/reference/mysqlnd_qc/constants.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd_qc/constants.xml 2012-03-15 15:29:27 UTC (rev 324277)
+++ phpdoc/en/trunk/reference/mysqlnd_qc/constants.xml 2012-03-15 15:45:53 UTC (rev 324278)
@@ -93,6 +93,40 @@
</simpara>
</listitem>
</varlistentry>
+ <varlistentry xml:id="constant.mysqlnd-qc-server-id">
+ <term>
+ <constant>MYSQLND_QC_SERVER_ID_SWITCH</constant>
+ (
+ <type>string</type>)
+ </term>
+ <listitem>
+ <simpara>
+ This SQL hint should not be used in general.
+ </simpara>
+ <simpara>
+ It is needed by <link linkend="book.mysqlnd-ms">PECL/mysqlnd_ms</link>
+ to group cache entries for one statement
+ but originating from different physical connections. If the
+ hint is used connection settings such as user, hostname and charset
+ are not considered for generating a cache key of a query.
+ Instead the given value and the query string are used as input
+ to the hashing function that generates the key.
+ </simpara>
+ <simpara>
+ PECL/mysqlnd_ms may, if instructed, cache results from
+ MySQL Replication slaves. Because it can hold many connections
+ to the slave the cache key shall not be formed from the user,
+ hostname or other settings that may vary for the various slave
+ connections. Instead, PECL/mysqlnd_ms provides an identifier
+ which refers to the group of slave connections that shall be enabled
+ to share cache entries no matter which physical slave connection was
+ to generate the cache entry.
+ </simpara>
+ <simpara>
+ Use of this feature outside of PECL/mysqlnd_ms is not recommended.
+ </simpara>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>