Oracle 5.0 Reference Manual page 2702

Table of Contents

Advertisement

mysqlnd_qc.ignore_sql_comments
integer
mysqlnd_qc.slam_defense
integer
mysqlnd_qc.slam_defense_ttl
integer
mysqlnd_qc.collect_normalized_query_trace
integer
mysqlnd_qc.std_data_copy
integer
mysqlnd_qc.apc_prefix
string
mysqlnd_qc.memc_server
string
mysqlnd_qc.memc_port
integer
mysqlnd_qc.sqlite_data_file
string
20.7.7.6. Predefined Constants
Copyright 1997-2012 the PHP Documentation Group. [2230]
The constants below are defined by this extension, and will only be available when the extension has
either been compiled into PHP or dynamically loaded at runtime.
SQL hint related
Example 20.319. Using SQL hint constants
The query cache is controlled by SQL hints. SQL hints are used to enable and disable caching. SQL
hints can be used to set the
The SQL hints recognized by the query cache can be manually changed at compile time. This makes
it possible to use
interpreted by other systems. Therefore it is recommended to use the SQL hint string constants instead
of manually adding the default SQL hints to the query string.
<?php
/* Use constants for maximum portability */
$query = "/*" . MYSQLND_QC_ENABLE_SWITCH . "*/SELECT id FROM test";
/* Valid but less portable: default TTL */
$query = "/*qc=on*/SELECT id FROM test";
/* Valid but less portable: per statement TTL */
$query = "/*qc=on*//*qc_ttl=5*/SELECT id FROM test";
printf("MYSQLND_QC_ENABLE_SWITCH: %s\n", MYSQLND_QC_ENABLE_SWITCH);
printf("MYSQLND_QC_DISABLE_SWITCH: %s\n", MYSQLND_QC_DISABLE_SWITCH);
Mysqlnd query result cache plugin (mysqlnd_qc)
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
test
refer to the same cache entry.
Since 1.1.0.
Activates handler based slam defense (cache stampeding
protection) if available. Supported by
handler
for stale cache entries which are served while another client
TTL
updates the entries. Supported by
Collect aggregated normalized query traces? The setting has
no effect by default. You compile the extension using the define
NORM_QUERY_TRACE_LOG
Default storage handler: copy cached wire data? EXPERIMENTAL –
use default setting!
The
setting sets a prefix to be used for cache entries.
MEMCACHE
MEMCACHE
sqlite
be of little practical value.
of a query.
TTL
in environments in which the default SQL hints are already taken and
mysqlnd_qc
SELECT /*my_source_ip=123*/ id FROM
and
SELECT /*my_source_ip=456*/ id FROM test
to make use of the setting.
storage handler stores data in the
APC
storage handler: memcache server host.
storage handler: memcached server port.
storage handler: data file. Any setting but
2682
and
Default
APC
storage handler.
APC
user cache. The
APC
:memory:
to
storage
may

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents