Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 8e51924

Browse files
author
Joe Grasse
committed
Updated doc for addition of background thread
Updated doc for addition of background thread and removed duplicate doc entry.
1 parent 2690abb commit 8e51924

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,12 @@ mysql> select * from latest_file_io limit 5;
251251

252252
Summarizes memory use by user using the 5.7 Performance Schema instrumentation.
253253

254+
When the user found is NULL, it is assumed to be a "background" thread.
255+
254256
##### Example
255257

256258
```SQL
257-
mysql> select * from memory_by_user_by_current_bytes WHERE user IS NOT NULL;
259+
mysql> select * from memory_by_user_by_current_bytes;
258260
+------+--------------------+-------------------+-------------------+-------------------+-----------------+
259261
| user | current_count_used | current_allocated | current_avg_alloc | current_max_alloc | total_allocated |
260262
+------+--------------------+-------------------+-------------------+-------------------+-----------------+
@@ -742,6 +744,8 @@ avg_tmp_tables_per_query: 189
742744
743745
Summarizes statement activity, file IO and connections by user.
744746
747+
When the user found is NULL, it is assumed to be a "background" thread.
748+
745749
##### Example
746750
747751
```SQL
@@ -823,6 +827,8 @@ mysql> select * from user_summary_by_file_io_type;
823827
824828
Summarizes stages by user, ordered by user and total latency per stage.
825829
830+
When the user found is NULL, it is assumed to be a "background" thread.
831+
826832
##### Example
827833
828834
```SQL
@@ -855,6 +861,8 @@ mysql> select * from user_summary_by_stages;
855861
856862
Summarizes overall statement statistics by user.
857863
864+
When the user found is NULL, it is assumed to be a "background" thread.
865+
858866
##### Example
859867
860868
```SQL
@@ -872,6 +880,8 @@ mysql> select * from user_summary_by_statement_latency;
872880
873881
Summarizes the types of statements executed by each user.
874882
883+
When the user found is NULL, it is assumed to be a "background" thread.
884+
875885
##### Example
876886
877887
```SQL

views/p_s/memory_by_user.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* When the user found is NULL, it is assumed to be a "background" thread.
2222
*
23-
* mysql> select * from memory_by_user_by_current_bytes WHERE user IS NOT NULL;
23+
* mysql> select * from memory_by_user_by_current_bytes;
2424
* +------+--------------------+-------------------+-------------------+-------------------+-----------------+
2525
* | user | current_count_used | current_allocated | current_avg_alloc | current_max_alloc | total_allocated |
2626
* +------+--------------------+-------------------+-------------------+-------------------+-----------------+
@@ -59,7 +59,7 @@ SELECT IF(user IS NULL, 'background', user) AS user,
5959
*
6060
* When the user found is NULL, it is assumed to be a "background" thread.
6161
*
62-
* mysql> select * from x$memory_by_user_by_current_bytes WHERE user IS NOT NULL;
62+
* mysql> select * from x$memory_by_user_by_current_bytes;
6363
* +------+--------------------+-------------------+-------------------+-------------------+-----------------+
6464
* | user | current_count_used | current_allocated | current_avg_alloc | current_max_alloc | total_allocated |
6565
* +------+--------------------+-------------------+-------------------+-------------------+-----------------+

0 commit comments

Comments
 (0)