Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "215.10"
},
"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": 50,
"rows_produced_per_join": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "60.06",
"eval_cost": "10.00",
"prefix_cost": "70.06",
"data_read_per_join": "800"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
],
"attached_condition": "(`webmarco`.`p`.`product_id` in (431070,431433,431397,431370,430783,430775,431432,431286,431306,431490,431268,431493,431398,431444,431386,431305,430763,431255,430967,431254,431399,431484,435512,430776,430784,431016,431173,431216,431318,431417,431371,431416,435513,430729,431272,431319,431372,431461,431373,431271,435515,435514,431267,431269,435516,431270,387051,435517,435518,432250))"
}
},
{
"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": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "50.00",
"eval_cost": "10.00",
"prefix_cost": "130.06",
"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": "3",
"ref": [
"webmarco.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 70,
"filtered": "100.00",
"cost_info": {
"read_cost": "70.86",
"eval_cost": "14.17",
"prefix_cost": "215.10",
"data_read_per_join": "7K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}