Query time 0.00106
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.83"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": [
"type"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 1,
"filtered": "33.33",
"cost_info": {
"read_cost": "2.43",
"eval_cost": "0.20",
"prefix_cost": "2.63",
"data_read_per_join": "312"
},
"used_columns": [
"item_id",
"ip_from",
"ip_to",
"type",
"status"
],
"attached_condition": "((`ea201_francemaqu`.`a`.`ip_from` <= '03924114') and (`ea201_francemaqu`.`a`.`ip_to` >= '03924114') and (`ea201_francemaqu`.`a`.`type` in ('ips','ipr','ipb')) and (`ea201_francemaqu`.`a`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"item_id",
"type",
"lang_code"
],
"key_length": "20",
"ref": [
"ea201_francemaqu.a.item_id",
"ea201_francemaqu.a.type",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "3.83",
"data_read_per_join": "32"
},
"used_columns": [
"item_id",
"type",
"reason",
"lang_code"
]
}
}
]
}
}