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
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...