Query time 0.00031
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.06"
},
"nested_loop": [
{
"table": {
"table_name": "l",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 69,
"rows_produced_per_join": 1,
"filtered": "1.45",
"cost_info": {
"read_cost": "16.06",
"eval_cost": "0.20",
"prefix_cost": "16.26",
"data_read_per_join": "232"
},
"used_columns": [
"location_id",
"is_default",
"layout_id"
],
"attached_condition": "((`ea201_diorama`.`l`.`layout_id` = 1) and (`ea201_diorama`.`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",
"used_key_parts": [
"location_id"
],
"key_length": "3",
"ref": [
"ea201_diorama.l.location_id"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 2,
"filtered": "50.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "0.40",
"prefix_cost": "21.06",
"data_read_per_join": "816"
},
"used_columns": [
"container_id",
"location_id",
"position",
"width",
"user_class",
"linked_to_default",
"status",
"company_id"
],
"attached_condition": "(`ea201_diorama`.`c`.`position` in ('TOP_PANEL','HEADER','FOOTER'))"
}
}
]
}
}
Result
container_id |
location_id |
position |
width |
user_class |
linked_to_default |
status |
company_id |
default |
115 |
17 |
TOP_PANEL |
16 |
|
Y |
A |
0 |
0 |
49 |
17 |
HEADER |
16 |
|
Y |
A |
0 |
0 |
51 |
17 |
FOOTER |
16 |
ty-footer-grid__full-width |
Y |
A |
0 |
0 |