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

Commit 16c0429

Browse files
committed
Fix the io_by_thread_by_latency for 5.7.5 ONLY_FULL_GROUP_BY
1 parent 872c88c commit 16c0429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/p_s/io_by_thread_by_latency.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SELECT IF(processlist_id IS NULL,
6767
LEFT JOIN performance_schema.threads USING (thread_id)
6868
WHERE event_name LIKE 'wait/io/file/%'
6969
AND sum_timer_wait > 0
70-
GROUP BY thread_id
70+
GROUP BY thread_id, processlist_id, user
7171
ORDER BY SUM(sum_timer_wait) DESC;
7272

7373
/*
@@ -124,5 +124,5 @@ SELECT IF(processlist_id IS NULL,
124124
LEFT JOIN performance_schema.threads USING (thread_id)
125125
WHERE event_name LIKE 'wait/io/file/%'
126126
AND sum_timer_wait > 0
127-
GROUP BY thread_id
127+
GROUP BY thread_id, processlist_id, user
128128
ORDER BY SUM(sum_timer_wait) DESC;

0 commit comments

Comments
 (0)