Query time 0.00080
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.61"
},
"nested_loop": [
{
"table": {
"table_name": "gpf",
"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": 7,
"rows_produced_per_join": 7,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gpf`.`group_id` in (73,149,150,151,157,774,974))",
"cost_info": {
"read_cost": "4.21",
"eval_cost": "0.70",
"prefix_cost": "4.91",
"data_read_per_join": "728"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gp",
"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.gpf.group_id"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "12.26",
"data_read_per_join": "336"
},
"used_columns": [
"product_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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "19.61",
"data_read_per_join": "16K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 656 |
1254 |
1726 |
73 |
| 656 |
1253 |
1725 |
73 |
| 656 |
247 |
1724 |
73 |
| 656 |
2109 |
1607 |
149 |
| 656 |
2108 |
1560 |
149 |
| 656 |
2107 |
2231 |
149 |
| 656 |
2112 |
2237 |
150 |
| 656 |
2111 |
1597 |
150 |
| 656 |
2110 |
1724 |
150 |
| 656 |
2114 |
1560 |
151 |
| 656 |
2113 |
2243 |
151 |
| 656 |
2247 |
1599 |
157 |
| 656 |
2248 |
2423 |
157 |
| 656 |
7741 |
8611 |
774 |
| 656 |
7740 |
8612 |
774 |
| 656 |
10276 |
1560 |
974 |
| 656 |
10277 |
1600 |
974 |
| 656 |
10278 |
1790 |
974 |