Query time 0.00057
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.71"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.26"
},
"nested_loop": [
{
"table": {
"table_name": "rf",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 1,
"filtered": "33.33",
"cost_info": {
"read_cost": "2.42",
"eval_cost": "0.20",
"prefix_cost": "2.62",
"data_read_per_join": "784"
},
"used_columns": [
"facility_id",
"status",
"timestamp",
"company_id"
],
"attached_condition": "((`pankajecarter_systemfive`.`rf`.`status` = 'A') and (`pankajecarter_systemfive`.`rf`.`facility_id` is not null))"
}
},
{
"table": {
"table_name": "prf",
"access_type": "ref",
"possible_keys": [
"facility_id"
],
"key": "facility_id",
"used_key_parts": [
"facility_id"
],
"key_length": "3",
"ref": [
"pankajecarter_systemfive.rf.facility_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "2.00",
"eval_cost": "0.05",
"prefix_cost": "5.14",
"data_read_per_join": "4"
},
"used_columns": [
"id",
"product_id",
"facility_id",
"group_id"
],
"attached_condition": "(`pankajecarter_systemfive`.`prf`.`group_id` = 10)"
}
},
{
"table": {
"table_name": "rfd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"facility_id",
"lang_code"
],
"key_length": "9",
"ref": [
"pankajecarter_systemfive.rf.facility_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.26",
"eval_cost": "0.05",
"prefix_cost": "5.45",
"data_read_per_join": "203"
},
"used_columns": [
"facility_id",
"lang_code",
"title"
]
}
}
]
}
}
}