Query time 0.00066
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.50"
},
"nested_loop": [
{
"table": {
"table_name": "l",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 190,
"rows_produced_per_join": 1,
"filtered": "1.00",
"cost_info": {
"read_cost": "19.65",
"eval_cost": "0.19",
"prefix_cost": "19.84",
"data_read_per_join": "440"
},
"used_columns": [
"location_id",
"is_default",
"layout_id"
],
"attached_condition": "((`primapearl_r_new`.`l`.`layout_id` = 137) and (`primapearl_r_new`.`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": [
"primapearl_r_new.l.location_id"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 3,
"filtered": "50.00",
"cost_info": {
"read_cost": "1.90",
"eval_cost": "0.38",
"prefix_cost": "22.50",
"data_read_per_join": "1K"
},
"used_columns": [
"container_id",
"location_id",
"position",
"width",
"user_class",
"linked_to_default",
"status",
"company_id"
],
"attached_condition": "(`primapearl_r_new`.`c`.`position` in ('TOP_PANEL','HEADER','FOOTER'))"
}
}
]
}
}
Result
| container_id |
location_id |
position |
width |
user_class |
linked_to_default |
status |
company_id |
default |
| 9829 |
2458 |
TOP_PANEL |
12 |
|
Y |
A |
0 |
0 |
| 9830 |
2458 |
HEADER |
12 |
header-grid |
Y |
A |
0 |
0 |
| 9832 |
2458 |
FOOTER |
12 |
footer-main |
Y |
A |
0 |
0 |