| 1 |
# Performance schema tests generally depend on specific query plans |
| 2 |
# and behavior, and much of the perfschema suite is therefore disabled |
| 3 |
# if the hypergraph optimizer is active. |
| 4 |
--source include/not_hypergraph.inc |
| 5 |
|
| 6 |
# Tests for PERFORMANCE_SCHEMA |
| 7 |
|
| 8 |
#setup |
| 9 |
let $select_column = COUNT(*); |
| 10 |
let $table = performance_schema.socket_instances; |
| 11 |
|
| 12 |
select OBJECT_INSTANCE_BEGIN, THREAD_ID, SOCKET_ID, IP, PORT |
| 13 |
from performance_schema.socket_instances |
| 14 |
limit 1 |
| 15 |
into @oib, @tid, @sid, @ip, @port; |
| 16 |
|
| 17 |
########################################################################### |
| 18 |
# Test index on OBJECT_INSTANCE_BEGIN |
| 19 |
########################################################################### |
| 20 |
|
| 21 |
let $column_count = 1; |
| 22 |
let $col1 = OBJECT_INSTANCE_BEGIN; |
| 23 |
let $col1_act = @oib; |
| 24 |
|
| 25 |
--source ../include/idx_explain_test.inc |
| 26 |
|
| 27 |
########################################################################### |
| 28 |
# Test index on THREAD_ID |
| 29 |
########################################################################### |
| 30 |
|
| 31 |
let $column_count = 1; |
| 32 |
let $col1 = THREAD_ID; |
| 33 |
let $col1_act = @tid; |
| 34 |
|
| 35 |
--source ../include/idx_explain_test.inc |
| 36 |
|
| 37 |
########################################################################### |
| 38 |
# Test index on SOCKET_ID |
| 39 |
########################################################################### |
| 40 |
|
| 41 |
let $column_count = 1; |
| 42 |
let $col1 = SOCKET_ID; |
| 43 |
let $col1_act = @sid; |
| 44 |
|
| 45 |
--source ../include/idx_explain_test.inc |
| 46 |
|
| 47 |
########################################################################### |
| 48 |
# Test index on IP, PORT |
| 49 |
########################################################################### |
| 50 |
|
| 51 |
let $column_count = 2; |
| 52 |
let $col1 = IP; |
| 53 |
let $col2 = PORT; |
| 54 |
let $col1_act = @ip; |
| 55 |
let $col2_act = @port; |
| 56 |
|
| 57 |
--source ../include/idx_explain_test.inc |