svn: /phpdoc/en/trunk/reference/mysqlnd_qc/ book.xml changes.xml ini.xml quickstart.xml
| From: | Ulf Wendel | Date: | Thu, 15 Mar 2012 15:20:22 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysqlnd_qc/ book.xml changes.xml ini.xml quickstart.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9904@lists.php.net to get a copy of this message | ||
uw Thu, 15 Mar 2012 15:20:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=324276
Log:
Some updates on 1.1.0 (under development)
Changed paths:
U phpdoc/en/trunk/reference/mysqlnd_qc/book.xml
U phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml
U phpdoc/en/trunk/reference/mysqlnd_qc/ini.xml
U phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml
Modified: phpdoc/en/trunk/reference/mysqlnd_qc/book.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd_qc/book.xml 2012-03-15 15:17:01 UTC (rev 324275)
+++ phpdoc/en/trunk/reference/mysqlnd_qc/book.xml 2012-03-15 15:20:22 UTC (rev 324276)
@@ -119,6 +119,12 @@
</itemizedlist>
</para>
</listitem>
+
+ <listitem>
+ <para>
+ Built-in slam defense to prevent cache stampeding.
+ </para>
+ </listitem>
</itemizedlist>
</para>
</section>
@@ -127,7 +133,7 @@
<title>Limitations</title>
<para>
The current 1.0.1 release of PECL mysqlnd_qc does
- not support PHP 5.4.
+ not support PHP 5.4. Version 1.1.0-alpha lifts this limitation.
</para>
<para>
Prepared statements and unbuffered queries are fully supported.
Modified: phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml 2012-03-15 15:17:01 UTC (rev 324275)
+++ phpdoc/en/trunk/reference/mysqlnd_qc/changes.xml 2012-03-15 15:20:22 UTC (rev 324276)
@@ -24,7 +24,7 @@
</listitem>
<listitem>
<simpara>
- Motto/theme: PHP 5.4 compatbility
+ Motto/theme: PHP 5.4 compatbility, schema pattern based caching and mysqlnd_ms support
</simpara>
</listitem>
</itemizedlist>
@@ -52,25 +52,82 @@
</listitem>
<listitem>
<para>
- New PHP configuration directive
+ New PHP configuration directives
<itemizedlist>
<listitem>
<simpara>
<literal><link
linkend="ini.mysqlnd-qc.collect-statistics-log-file">
mysqlnd_qc.collect_statistics_log_file</link></literal>
</simpara>
+ <simpara>
+ <literal><link linkend="ini.mysqlnd-qc.ignore-sql-comments">
+ mysqlnd_qc.ignore_sql_comments</link></literal>.
+ Control whether SQL comments are ignored for cache key hash generation.
+ </simpara>
</listitem>
</itemizedlist>
</para>
</listitem>
<listitem>
<para>
+ New constants and SQL hints
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ <literal>MYSQLND_QC_SERVER_ID_SWITCH</literal> allows grouping of cache
entries from
+ different physical connections. This is needed by PECL/mysqlnd_ms.
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
Report <literal>valid_until</literal> timestamp for cache entries
of the default handler through <function>mysqlnd_qc_get_cache_info</function>.
</para>
</listitem>
+ <listitem>
+ <para>
+ Include charset number for cache entry hashing. This should prevent serving result
+ sets which have the wrong charset.
+ </para>
+ <para>
+ API change: get_hash_key expects new "charsetnr" (int) parameter after
"port".
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ API change: changing is_select() signature from bool is_select() to
+ mixed is_select(). Mixed can be either boolean or
+ array(long ttl, string server_id). This is needed by PECL/mysqlnd_ms.
+ </para>
+ </listitem>
</itemizedlist>
</para>
+ <para>
+ Other
+ <itemizedlist>
+ <listitem>
+ <para>
+ Support acting as a cache backend for
+ <link linkend="book.mysqlnd-ms">PECL/mysqlnd_ms</link> 1.3.0-beta or
later
+ to transparently replace MySQL Replication slave reads with cache accesses,
+ if the user explicitly allows.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Bug fixes
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ Fixed Bug #59959 (config.m4, wrong library - 64bit memcached handler builds) (Credits: Remi
Collet)
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </para>
</section>
<section xml:id="mysqlnd-qc.changes-one-o">
Modified: phpdoc/en/trunk/reference/mysqlnd_qc/ini.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd_qc/ini.xml 2012-03-15 15:17:01 UTC (rev 324275)
+++ phpdoc/en/trunk/reference/mysqlnd_qc/ini.xml 2012-03-15 15:20:22 UTC (rev 324276)
@@ -88,27 +88,34 @@
</entry>
</row>
<row>
- <entry><link
linkend="ini.mysqlnd-qc.slam-defense">mysqlnd_qc.slam_defense</link></entry>
+ <entry><link
linkend="ini.mysqlnd-qc.collect-normalized-query-trace">mysqlnd_qc.collect_normalized_query_trace</link></entry>
<entry>0</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><!-- leave empty, this will be filled by an automatic script -->
</entry>
</row>
<row>
- <entry><link
linkend="ini.mysqlnd-qc.slam-defense-ttl">mysqlnd_qc.slam_defense_ttl</link></entry>
- <entry>30</entry>
- <entry>PHP_INI_SYSTEM</entry>
+ <entry><link
linkend="ini.mysqlnd-qc.ignore-sql-comments">mysqlnd_qc.ignore_sql_comments</link></entry>
+ <entry>1</entry>
+ <entry>PHP_INI_ALL</entry>
<entry><!-- leave empty, this will be filled by an automatic script -->
</entry>
</row>
<row>
- <entry><link
linkend="ini.mysqlnd-qc.collect-normalized-query-trace">mysqlnd_qc.collect_normalized_query_trace</link></entry>
+ <entry><link
linkend="ini.mysqlnd-qc.slam-defense">mysqlnd_qc.slam_defense</link></entry>
<entry>0</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><!-- leave empty, this will be filled by an automatic script -->
</entry>
</row>
<row>
+ <entry><link
linkend="ini.mysqlnd-qc.slam-defense-ttl">mysqlnd_qc.slam_defense_ttl</link></entry>
+ <entry>30</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ <entry><!-- leave empty, this will be filled by an automatic script -->
+ </entry>
+ </row>
+ <row>
<entry><link
linkend="ini.mysqlnd-qc.std-data-copy">mysqlnd_qc.std_data_copy</link></entry>
<entry>0</entry>
<entry>PHP_INI_SYSTEM</entry>
@@ -294,6 +301,24 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry xml:id="ini.mysqlnd-qc.ignore-sql-comments">
+ <term>
+ <parameter>mysqlnd_qc.ignore_sql_comments</parameter>
+ <type>integer</type>
+ </term>
+ <listitem>
+ <para>
+ Whether to remove SQL comments from a query string before
+ hashing it to generate a cache key. Disable if you do not want
+ two statemts such as <literal>SELECT /*my_source_ip=123*/ id FROM test</literal>
+ and <literal>SELECT /*my_source_ip=456*/ id FROM test</literal> to refer
+ to the same cache entry.
+ </para>
+ <para>
+ Since 1.1.0.
+ </para>
+ </listitem>
+ </varlistentry>
<varlistentry xml:id="ini.mysqlnd-qc.slam-defense">
<term>
<parameter>mysqlnd_qc.slam_defense</parameter>
@@ -301,7 +326,7 @@
</term>
<listitem>
<para>
- Activates handler based slam defense if available.
+ Activates handler based slam defense (cache stampeding protection) if available.
Supported by
<literal>Default</literal> and
<literal>
Modified: phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml 2012-03-15 15:17:01 UTC (rev 324275)
+++ phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml 2012-03-15 15:20:22 UTC (rev 324276)
@@ -770,7 +770,7 @@
<para>
A badly designed cache can do more harm than good. In the worst case a cache
can increase database server load instead of minimizing it. An overload situation
- can occur if a highly shared cache entry expires.
+ can occur if a highly shared cache entry expires (cache stampeding).
</para>
<para>
Cache entries are shared and reused to a different degree depending on