Mysqlnd query result cache plugin (
mysqlnd_qc
)
2702
string(41) "/*qc=on*/SELECT id FROM test WHERE id = 2"
["origin"]=>
string(103) "#0 qc.php(19): mysqli->query('/*qc=on*/SELECT...')
#1 {main}"
["run_time"]=>
int(13)
["store_time"]=>
int(8)
["eligible_for_caching"]=>
bool(true)
["no_table"]=>
bool(false)
["was_added"]=>
bool(false)
["was_already_in_cache"]=>
bool(true)
}
}
See Also
Runtime configuration
mysqlnd_qc.collect_query_trace
mysqlnd_qc.query_trace_bt_depth
mysqlnd_qc.time_statistics
mysqlnd_qc.cache_no_table
mysqlnd_qc_get_normalized_query_trace_log
20.7.7.7.7.
mysqlnd_qc_set_cache_condition
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqlnd_qc_set_cache_condition
Set conditions for automatic caching
Description
bool mysqlnd_qc_set_cache_condition(
int condition_type,
mixed condition,
mixed condition_option);
Sets a condition for automatic caching of statements which do not contain the necessary SQL hints to
enable caching of them.
Parameters
condition_type
Type of the condition. The only allowed value is
MYSQLND_QC_CONDITION_META_SCHEMA_PATTERN
.
condition
Parameter for the condition set with
condition_type
. Parameter
type and structure depend on
condition_type
If
condition_type
equals
MYSQLND_QC_CONDITION_META_SCHEMA_PATTERN
condition
must be a string. The string sets a pattern. Statements are cached
if table and database meta data entry of their result sets match
the pattern. The pattern is checked for a match with the
db
and
org_table
meta data entries provided by the underlying MySQL
client server library. Please, check the MySQL Reference manual
for details about the two entries. The
db
and
org_table
values are
concatenated with a dot (
.
) before matched against
condition
.
Pattern matching supports the wildcards
%
and
_
. The wildcard
%
will
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...