Query time 0.00025
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "7.30"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "1.50"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": [
"status"
],
"rows_examined_per_scan": 15,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "3.70",
"eval_cost": "0.30",
"prefix_cost": "4.00",
"data_read_per_join": "1K"
},
"used_columns": [
"usergroup_id",
"status",
"type",
"use_as_user_type",
"need_activate_user",
"notice_email",
"position"
],
"attached_condition": "((`webmarco`.`a`.`status` = 'A') and (`webmarco`.`a`.`type` in ('A','C','V')) and (`webmarco`.`a`.`use_as_user_type` = 'Y'))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"usergroup_id",
"lang_code"
],
"key_length": "9",
"ref": [
"webmarco.a.usergroup_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.50",
"eval_cost": "0.30",
"prefix_cost": "5.80",
"data_read_per_join": "1K"
},
"used_columns": [
"usergroup_id",
"lang_code",
"usergroup"
]
}
}
]
}
}
}
Result
usergroup_id |
status |
type |
usergroup |
use_as_user_type |
need_activate_user |
notice_email |
position |
17 |
A |
C |
Individual |
Y |
N |
|
0 |
18 |
A |
C |
Business |
Y |
N |
|
0 |
21 |
A |
A |
Desgin |
Y |
N |
|
0 |