Query time 0.00052
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "167.78"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 39,
"rows_produced_per_join": 39,
"filtered": "100.00",
"cost_info": {
"read_cost": "46.85",
"eval_cost": "7.80",
"prefix_cost": "54.65",
"data_read_per_join": "624"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
],
"attached_condition": "(`webmarco`.`p`.`product_id` in (392224,392211,392226,392228,392223,392225,392227,392210,392230,392231,392229,392232,392236,392237,392235,392234,392238,392239,392241,392233,392240,392255,392253,392254,392252,392242,392243,392249,392244,392250,392245,392246,392251,392247,392248,392222,392221,392220,392219))"
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "3",
"ref": [
"webmarco.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 39,
"filtered": "100.00",
"cost_info": {
"read_cost": "39.00",
"eval_cost": "7.80",
"prefix_cost": "101.45",
"data_read_per_join": "15K"
},
"used_columns": [
"id",
"code"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": [
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"webmarco.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 55,
"filtered": "100.00",
"cost_info": {
"read_cost": "55.27",
"eval_cost": "11.05",
"prefix_cost": "167.78",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}