You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/slow-extended.md
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,9 @@ Specifies that only a fraction of `session/query` should be logged. Logging is e
64
64
65
65
Logging all queries might consume I/O bandwidth and cause the log file to grow large.
66
66
67
-
68
-
* When log_slow_rate_type is `session`, this option lets you log full sessions, so you have complete records of sessions for later analysis; but you can rate-limit the number of sessions that are logged. Note that this feature will not work well if your application uses any type of connection pooling or persistent connections. Note that you change log_slow_rate_limit in `session` mode, you should reconnect for get effect.
67
+
* When log_slow_rate_type is `session`, this option lets you log full sessions, so you have complete records of sessions for later analysis; but you can rate-limit the number of sessions that are logged. Note that this feature will not work well if your application uses any type of connection pooling or persistent connections. Note that you change log_slow_rate_limit in `session` mode, you should reconnect for get effect.
69
68
70
-
71
-
* When log_slow_rate_type is `query`, this option lets you log just some queries for later analysis. For example, if you set the value to 100, then one percent of queries will be logged.
69
+
* When log_slow_rate_type is `query`, this option lets you log just some queries for later analysis. For example, if you set the value to 100, then one percent of queries will be logged.
72
70
73
71
Note that every query has global unique `query_id` and every connection can has it own (session) log_slow_rate_limit.
74
72
Decision “log or no” calculated in following manner:
@@ -103,13 +101,13 @@ For example, if you set the value to 100, then one percent of `sessions/queries`
103
101
104
102
If `TRUE`, statements executed by stored procedures are logged to the slow if it is open.
105
103
106
-
*Percona Server for MySQL* implemented improvements for logging of stored procedures to the slow query log:
104
+
Percona Server for MySQL implemented improvements for logging of stored procedures to the slow query log:
107
105
108
-
* Each query from a stored procedure is now logged to the slow query log individually
106
+
* Each query from a stored procedure is now logged to the slow query log individually
109
107
110
-
* `CALL` itself isn’t logged to the slow query log anymore as this would be counting twice for the same query which would lead to incorrect results
108
+
*`CALL` itself isn’t logged to the slow query log anymore as this would be counting twice for the same query which would lead to incorrect results
111
109
112
-
* Queries that were called inside of stored procedures are annotated in the slow query log with the stored procedure name in which they run.
110
+
* Queries that were called inside of stored procedures are annotated in the slow query log with the stored procedure name in which they run.
113
111
114
112
Example of the improved stored procedure slow query log entry:
0 commit comments