Query time 0.00031
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.81"
},
"nested_loop": [
{
"table": {
"table_name": "l",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 243,
"rows_produced_per_join": 2,
"filtered": "1.00",
"cost_info": {
"read_cost": "24.31",
"eval_cost": "0.24",
"prefix_cost": "24.55",
"data_read_per_join": "563"
},
"used_columns": [
"location_id",
"is_default",
"layout_id"
],
"attached_condition": "((`aomnia_com`.`l`.`layout_id` = 1) and (`aomnia_com`.`l`.`is_default` = 1))"
}
},
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": [
"location_id",
"location_id_company_id",
"location_id_position_company_id"
],
"key": "location_id_company_id",
"used_key_parts": [
"location_id",
"company_id"
],
"key_length": "7",
"ref": [
"aomnia_com.l.location_id",
"const"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 4,
"filtered": "50.00",
"cost_info": {
"read_cost": "2.33",
"eval_cost": "0.47",
"prefix_cost": "27.81",
"data_read_per_join": "1K"
},
"used_columns": [
"container_id",
"location_id",
"position",
"width",
"user_class",
"linked_to_default",
"status",
"company_id"
],
"attached_condition": "(`aomnia_com`.`c`.`position` in ('TOP_PANEL','HEADER','FOOTER'))"
}
}
]
}
}
Result
| container_id |
location_id |
position |
width |
user_class |
linked_to_default |
status |
company_id |
default |
| 1 |
1 |
TOP_PANEL |
16 |
top-grid |
Y |
D |
0 |
0 |
| 2 |
1 |
HEADER |
16 |
tt_header-menu__section |
Y |
A |
0 |
0 |
| 4 |
1 |
FOOTER |
16 |
ty-footer-grid |
Y |
A |
0 |
0 |