Query time 0.00072
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.58"
},
"nested_loop": [
{
"table": {
"table_name": "l",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_layout"
],
"key": "idx_layout",
"used_key_parts": [
"layout_id"
],
"key_length": "5",
"ref": [
"const"
],
"rows_examined_per_scan": 22,
"rows_produced_per_join": 2,
"filtered": "10.00",
"cost_info": {
"read_cost": "19.80",
"eval_cost": "0.22",
"prefix_cost": "22.00",
"data_read_per_join": "510"
},
"used_columns": [
"location_id",
"is_default",
"layout_id"
],
"attached_condition": "(`poscentr_upgrade422`.`l`.`is_default` = 1)"
}
},
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": [
"idx_containers_main"
],
"key": "idx_containers_main",
"used_key_parts": [
"location_id"
],
"key_length": "3",
"ref": [
"poscentr_upgrade422.l.location_id"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 4,
"filtered": "50.00",
"index_condition": "(`poscentr_upgrade422`.`c`.`position` in ('TOP_PANEL','HEADER','FOOTER'))",
"cost_info": {
"read_cost": "7.70",
"eval_cost": "0.44",
"prefix_cost": "30.58",
"data_read_per_join": "1K"
},
"used_columns": [
"container_id",
"location_id",
"position",
"width",
"user_class",
"linked_to_default",
"status",
"company_id"
]
}
}
]
}
}
Result
| container_id |
location_id |
position |
width |
user_class |
linked_to_default |
status |
company_id |
default |
| 21694 |
5433 |
TOP_PANEL |
16 |
top-grid |
Y |
A |
0 |
0 |
| 21695 |
5433 |
HEADER |
16 |
header-grid hidden-phone |
Y |
A |
0 |
0 |
| 21697 |
5433 |
FOOTER |
16 |
ty-footer-grid |
Y |
A |
0 |
0 |