Query time 0.00057
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.15"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "1.00"
},
"nested_loop": [
{
"table": {
"table_name": "d",
"access_type": "ALL",
"possible_keys": [
"lang_code"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "0.35",
"data_read_per_join": "216"
},
"used_columns": [
"lang_id",
"lang_code",
"status"
],
"attached_condition": "(`dev2`.`d`.`status` = 'A')"
}
},
{
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "0.70",
"data_read_per_join": "792"
},
"used_columns": [
"localization_id",
"is_default",
"status"
],
"attached_condition": "(`dev2`.`a`.`status` = 'A')"
}
},
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": [
"c_avail",
"element"
],
"key": "c_avail",
"used_key_parts": [
"localization_id"
],
"key_length": "3",
"ref": [
"dev2.a.localization_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.10",
"prefix_cost": "1.80",
"data_read_per_join": "128"
},
"used_columns": [
"element_id",
"localization_id",
"element",
"element_type"
],
"attached_condition": "((`dev2`.`c`.`element` = `dev2`.`d`.`lang_code`) and (`dev2`.`c`.`element_type` = 'L'))"
}
},
{
"table": {
"table_name": "b",
"access_type": "ref",
"possible_keys": [
"localisation_id"
],
"key": "localisation_id",
"used_key_parts": [
"localization_id",
"lang_code"
],
"key_length": "9",
"ref": [
"dev2.a.localization_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "2.15",
"data_read_per_join": "784"
},
"used_columns": [
"localization_id",
"localization",
"lang_code"
]
}
}
]
}
}
}