Query time 0.00088
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "119.01"
},
"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": 25,
"rows_produced_per_join": 25,
"filtered": "100.00",
"index_condition": "(`cscart`.`p`.`product_id` in (976,978,968,971,636,969,972,977,1022,1023,1106,1110,1131,1142,1157,1159,1013,1105,1108,1152,1153,1154,1120,1101))",
"cost_info": {
"read_cost": "54.01",
"eval_cost": "5.00",
"prefix_cost": "59.01",
"data_read_per_join": "400"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
]
}
},
{
"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": [
"cscart.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "89.01",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "3",
"ref": [
"cscart.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "119.01",
"data_read_per_join": "9K"
},
"used_columns": [
"id",
"code"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 549 |
group_variation_catalog_item |
636 |
0 |
46 |
PV-4F3DC3E7D |
| 549 |
group_variation_catalog_item |
969 |
0 |
119 |
PV-8F7013269 |
| 549 |
group_variation_catalog_item |
972 |
0 |
120 |
PV-D28D307C0 |
| 549 |
group_variation_catalog_item |
1013 |
0 |
128 |
PV-4CB2CDA38 |
| 549 |
group_variation_catalog_item |
1108 |
0 |
144 |
PV-8C381617D |
| 549 |
group_variation_catalog_item |
1152 |
0 |
145 |
PV-0779A457D |
| 549 |
group_variation_catalog_item |
1157 |
0 |
142 |
PV-94A4907EC |