Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.26"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gp`.`group_id` in (563,643,646,481,567,182,396,460))",
"cost_info": {
"read_cost": "7.26",
"eval_cost": "1.50",
"prefix_cost": "8.76",
"data_read_per_join": "240"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gpf",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "14.01",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.gpf.feature_id",
"softwarepirmam_hewadelivard_cscart_4.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "19.26",
"data_read_per_join": "11K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 656 |
2393 |
1560 |
182 |
| 656 |
2394 |
1559 |
182 |
| 656 |
3464 |
1560 |
396 |
| 656 |
3467 |
1559 |
396 |
| 656 |
3826 |
1559 |
460 |
| 656 |
4101 |
1560 |
460 |
| 656 |
4192 |
1600 |
481 |
| 656 |
4193 |
2315 |
481 |
| 656 |
4975 |
1600 |
563 |
| 656 |
4974 |
1607 |
563 |
| 656 |
4998 |
1560 |
567 |
| 656 |
4995 |
2315 |
567 |
| 656 |
5900 |
1560 |
643 |
| 656 |
5899 |
1559 |
643 |
| 656 |
5934 |
1559 |
646 |
| 656 |
5935 |
1560 |
646 |