Query time 0.00048
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "124.81"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "4",
"rows_examined_per_scan": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "(`portal`.`p`.`product_id` in (41339,29354,29395,29396,30848,30922,31133,13615,13626,13652,10455,10456,1519,1520,1521,1524,1525,1526,1527,1143,1142,1141,1140,1139,1138,1137))",
"cost_info": {
"read_cost": "57.21",
"eval_cost": "5.20",
"prefix_cost": "62.41",
"data_read_per_join": "416"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "4",
"ref": [
"portal.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "93.61",
"data_read_per_join": "19K"
},
"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": "4",
"ref": [
"portal.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "124.81",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}