MySQL Native Driver (
Mysqlnd
)
2538
Statistic Scope
Description
Notes
ps_prepared_never_executed
Connection
Number of statements prepared but
never executed.
Prepared statements occupy server
resources. You should not prepare a
statement if you do not plan to execute
it.
ps_prepared_once_executed
Connection
Number of prepared statements
executed only one.
One of the ideas behind prepared
statements is that the same query gets
executed over and over again (with
different parameters) and some parsing
and other preparation work can be
saved, if statement execution is split
up in separate prepare and execute
stages. The idea is to prepare once
and “cache” results, for example, the
parse tree to be reused during multiple
statement executions. If you execute
a prepared statement only once the
two stage processing can be inefficient
compared to “normal” queries because
all the caching means extra work and it
takes (limited) server resources to hold
the cached information. Consequently,
prepared statements that are executed
only once may cause performance
hurts.
rows_fetched_from_server_normal
,
rows_fetched_from_server_ps
Connection
Total number of result set rows
successfully fetched from MySQL
regardless if the client application has
consumed them or not. Some of the
rows may not have been fetched by the
client application but have been flushed
implicitly.
See also
packets_received_rset_row
rows_buffered_from_client_normal
,
rows_buffered_from_client_ps
Connection
Total number of successfully buffered
rows originating from a "normal" query
or a prepared statement. This is the
number of rows that have been fetched
from MySQL and buffered on client.
Note that there are two distinct statistics
on rows that have been buffered
(MySQL to mysqlnd internal buffer) and
buffered rows that have been fetched
by the client application (mysqlnd
internal buffer to client application).
If the number of buffered rows is
higher than the number of fetched
buffered rows it can mean that the client
application runs queries that cause
larger result sets than needed resulting
in rows not read by the client.
Examples of queries that will
buffer results:
mysqli_query
,
mysqli_store_result
rows_fetched_from_client_normal_buffered
,
rows_fetched_from_client_ps_buffered
Connection
Total number of rows fetched by the
client from a buffered result set created
by a normal query or a prepared
statement.
rows_fetched_from_client_normal_unbuffered
,
rows_fetched_from_client_ps_unbuffered
Connection
Total number of rows fetched by the
client from a unbuffered result set
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 ...