Debian Codegraph @

mysql-test/suite/perfschema/r/digest_view.result

raw
1 CREATE TABLE test.v1 (a int, b int);
2 INSERT INTO test.v1 VALUES (1, 100), (2, 200), (3, 300);
3 CREATE TABLE test.t1 (a int, b int);
4 INSERT INTO test.t1 VALUES (1, 100), (2, 200), (3, 300);
5 ANALYZE TABLE v1, t1;
6 Table Op Msg_type Msg_text
7 test.v1 analyze status OK
8 test.t1 analyze status OK
9 TRUNCATE TABLE performance_schema.events_statements_summary_by_digest;
10 EXPLAIN SELECT * from test.v1;
11 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
12 1 SIMPLE v1 NULL ALL NULL NULL NULL NULL 3 100.00 NULL
13 EXPLAIN SELECT * from test.v1 where a = 1;
14 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
15 1 SIMPLE v1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where
16 EXPLAIN SELECT * from test.v1 where b > 100;
17 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
18 1 SIMPLE v1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where
19 EXPLAIN SELECT a, b from test.v1;
20 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
21 1 SIMPLE v1 NULL ALL NULL NULL NULL NULL 3 100.00 NULL
22 EXPLAIN SELECT b, a from test.v1;
23 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
24 1 SIMPLE v1 NULL ALL NULL NULL NULL NULL 3 100.00 NULL
25 SELECT * from test.v1;
26 a b
27 1 100
28 2 200
29 3 300
30 SELECT * from test.v1 where a = 1;
31 a b
32 1 100
33 SELECT * from test.v1 where b > 100;
34 a b
35 2 200
36 3 300
37 SELECT a, b from test.v1;
38 a b
39 1 100
40 2 200
41 3 300
42 SELECT b, a from test.v1;
43 b a
44 100 1
45 200 2
46 300 3
47 #
48 # DIGESTS SEEN ON TABLE
49 #
50 SELECT SCHEMA_NAME, DIGEST, DIGEST_TEXT, COUNT_STAR, QUERY_SAMPLE_TEXT
51 FROM performance_schema.events_statements_summary_by_digest
52 ORDER BY DIGEST_TEXT;
53 SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR QUERY_SAMPLE_TEXT
54 test 44defeaac80e345658f6eaf6a9cd5dfff624c4b84fc7c066d82eb24dc89e1dbe EXPLAIN SELECT * FROM `test` . `v1` 1 EXPLAIN SELECT * from test.v1
55 test 7cd6b2a1f8762c488dd5841fc26fe59cce592c59b278df1ce76ae274abf10f4e EXPLAIN SELECT * FROM `test` . `v1` WHERE `a` = ? 1 EXPLAIN SELECT * from test.v1 where a = 1
56 test 97cd4b3d096f36adbf995fd64e2d4bf2a8975910cc1eaf5f7a8e876fb28be512 EXPLAIN SELECT * FROM `test` . `v1` WHERE `b` > ? 1 EXPLAIN SELECT * from test.v1 where b > 100
57 test a3c66e6014d41d5428f4198e43087098355a61eeb039a595683f85a4cf8aaf42 EXPLAIN SELECT `a` , `b` FROM `test` . `v1` 1 EXPLAIN SELECT a, b from test.v1
58 test 3c694431b761a9fbfc0f4f78fb031957b2ae9aec6fb1f4dc137451aceb1b6316 EXPLAIN SELECT `b` , `a` FROM `test` . `v1` 1 EXPLAIN SELECT b, a from test.v1
59 test 8e0aabd64f6361bc3dbc913dcf873a5249d72a07e2b91a7bc8f043ba60436a31 SELECT * FROM `test` . `v1` 1 SELECT * from test.v1
60 test 56336f6ce1f4057068812b9f97001aa394357558f3b94089281b4e5af5049cee SELECT * FROM `test` . `v1` WHERE `a` = ? 1 SELECT * from test.v1 where a = 1
61 test 631f182bba654d327aff6824fa46dcfd79b1f85a9ab9c12c1489411a6901a5b2 SELECT * FROM `test` . `v1` WHERE `b` > ? 1 SELECT * from test.v1 where b > 100
62 test 75f26f170466d57f74d63f1548edcbd9c27a02bf7373f86ea7602535a38a5470 SELECT `a` , `b` FROM `test` . `v1` 1 SELECT a, b from test.v1
63 test 1e4bf55234aec9d998764bfdd1cba42bf2e06a67d681b326f065bba4192a360f SELECT `b` , `a` FROM `test` . `v1` 1 SELECT b, a from test.v1
64 test 5e18b503343466373cc0ce1922b04a77902f0cce5386ce599cb95b682d29415e TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 TRUNCATE TABLE performance_schema.events_statements_summary_by_digest
65 DROP TABLE test.v1;
66 CREATE VIEW test.v1 AS SELECT * FROM test.t1;
67 EXPLAIN SELECT * from test.v1;
68 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
69 1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 100.00 NULL
70 EXPLAIN SELECT * from test.v1 where a = 1;
71 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
72 1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where
73 EXPLAIN SELECT * from test.v1 where b > 100;
74 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
75 1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where
76 EXPLAIN SELECT a, b from test.v1;
77 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
78 1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 100.00 NULL
79 EXPLAIN SELECT b, a from test.v1;
80 id select_type table partitions type possible_keys key key_len ref rows filtered Extra
81 1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 100.00 NULL
82 SELECT * from test.v1;
83 a b
84 1 100
85 2 200
86 3 300
87 SELECT * from test.v1 where a = 1;
88 a b
89 1 100
90 SELECT * from test.v1 where b > 100;
91 a b
92 2 200
93 3 300
94 SELECT a, b from test.v1;
95 a b
96 1 100
97 2 200
98 3 300
99 SELECT b, a from test.v1;
100 b a
101 100 1
102 200 2
103 300 3
104 #
105 # DIGESTS SEEN ON VIEW
106 #
107 SELECT SCHEMA_NAME, DIGEST, DIGEST_TEXT, COUNT_STAR, QUERY_SAMPLE_TEXT
108 FROM performance_schema.events_statements_summary_by_digest
109 ORDER BY DIGEST_TEXT;
110 SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR QUERY_SAMPLE_TEXT
111 test 5339225c923312b39bdd29d591b93e3fe8b609b2164553c62ca138cc93450f9e CREATE VIEW `test` . `v1` AS SELECT * FROM `test` . `t1` 1 CREATE VIEW test.v1 AS SELECT * FROM test.t1
112 test 130d4736dce856bc0f41b91ab6385c98539537fe1dbc6cf5b3b1640947633c0c DROP TABLE `test` . `v1` 1 DROP TABLE test.v1
113 test 44defeaac80e345658f6eaf6a9cd5dfff624c4b84fc7c066d82eb24dc89e1dbe EXPLAIN SELECT * FROM `test` . `v1` 2 EXPLAIN SELECT * from test.v1
114 test 7cd6b2a1f8762c488dd5841fc26fe59cce592c59b278df1ce76ae274abf10f4e EXPLAIN SELECT * FROM `test` . `v1` WHERE `a` = ? 2 EXPLAIN SELECT * from test.v1 where a = 1
115 test 97cd4b3d096f36adbf995fd64e2d4bf2a8975910cc1eaf5f7a8e876fb28be512 EXPLAIN SELECT * FROM `test` . `v1` WHERE `b` > ? 2 EXPLAIN SELECT * from test.v1 where b > 100
116 test a3c66e6014d41d5428f4198e43087098355a61eeb039a595683f85a4cf8aaf42 EXPLAIN SELECT `a` , `b` FROM `test` . `v1` 2 EXPLAIN SELECT a, b from test.v1
117 test 3c694431b761a9fbfc0f4f78fb031957b2ae9aec6fb1f4dc137451aceb1b6316 EXPLAIN SELECT `b` , `a` FROM `test` . `v1` 2 EXPLAIN SELECT b, a from test.v1
118 test 8e0aabd64f6361bc3dbc913dcf873a5249d72a07e2b91a7bc8f043ba60436a31 SELECT * FROM `test` . `v1` 2 SELECT * from test.v1
119 test 56336f6ce1f4057068812b9f97001aa394357558f3b94089281b4e5af5049cee SELECT * FROM `test` . `v1` WHERE `a` = ? 2 SELECT * from test.v1 where a = 1
120 test 631f182bba654d327aff6824fa46dcfd79b1f85a9ab9c12c1489411a6901a5b2 SELECT * FROM `test` . `v1` WHERE `b` > ? 2 SELECT * from test.v1 where b > 100
121 test 75f26f170466d57f74d63f1548edcbd9c27a02bf7373f86ea7602535a38a5470 SELECT `a` , `b` FROM `test` . `v1` 2 SELECT a, b from test.v1
122 test 1e4bf55234aec9d998764bfdd1cba42bf2e06a67d681b326f065bba4192a360f SELECT `b` , `a` FROM `test` . `v1` 2 SELECT b, a from test.v1
123 test 04541f02221581a3ca19b1c4798def8a117e0a1ccaa6f8e93a8753c003dbada1 SELECT SCHEMA_NAME , `DIGEST` , `DIGEST_TEXT` , `COUNT_STAR` , `QUERY_SAMPLE_TEXT` FROM `performance_schema` . `events_statements_summary_by_digest` ORDER BY `DIGEST_TEXT` 1 SELECT SCHEMA_NAME, DIGEST, DIGEST_TEXT, COUNT_STAR, QUERY_SAMPLE_TEXT
124 FROM performance_schema.events_statements_summary_by_digest
125 ORDER BY DIGEST_TEXT
126 test 5e18b503343466373cc0ce1922b04a77902f0cce5386ce599cb95b682d29415e TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 TRUNCATE TABLE performance_schema.events_statements_summary_by_digest
127 DROP VIEW test.v1;
128 DROP TABLE test.t1;