Query time 0.00232
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.86"
},
"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": 14,
"rows_produced_per_join": 14,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gp`.`group_id` in (872,877,908,993,1070,1093,1126))",
"cost_info": {
"read_cost": "6.66",
"eval_cost": "1.40",
"prefix_cost": "8.06",
"data_read_per_join": "224"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "12.96",
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "17.86",
"data_read_per_join": "10K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 682 |
9077 |
8818 |
872 |
| 682 |
9076 |
8656 |
872 |
| 682 |
9124 |
8656 |
877 |
| 682 |
9125 |
8703 |
877 |
| 682 |
9829 |
8656 |
908 |
| 682 |
9816 |
8703 |
908 |
| 656 |
10413 |
1674 |
993 |
| 656 |
10412 |
1559 |
993 |
| 656 |
11117 |
1560 |
1070 |
| 656 |
11118 |
1607 |
1070 |
| 656 |
11298 |
1596 |
1093 |
| 779 |
11298 |
9517 |
1093 |
| 656 |
11299 |
1600 |
1093 |
| 779 |
11299 |
9517 |
1093 |
| 771 |
11392 |
9867 |
1126 |
| 656 |
11392 |
1682 |
1126 |
| 779 |
11392 |
9588 |
1126 |
| 771 |
11393 |
9867 |
1126 |
| 656 |
11393 |
9355 |
1126 |
| 779 |
11393 |
9627 |
1126 |