Query time 0.00185
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "58.81"
},
"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": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gpf`.`group_id` in (45,340,273,66,219,284,161,272,158,307,268,350,115,320,65,114,116,159,160,162,297))",
"cost_info": {
"read_cost": "12.61",
"eval_cost": "2.10",
"prefix_cost": "14.71",
"data_read_per_join": "2K"
},
"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": 63,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.75",
"eval_cost": "6.30",
"prefix_cost": "36.76",
"data_read_per_join": "1008"
},
"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": 63,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.75",
"eval_cost": "6.30",
"prefix_cost": "58.81",
"data_read_per_join": "48K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 656 |
908 |
1653 |
45 |
| 656 |
134 |
1652 |
45 |
| 658 |
1142 |
1701 |
65 |
| 658 |
853 |
1700 |
65 |
| 656 |
1146 |
1707 |
66 |
| 656 |
1145 |
1610 |
66 |
| 656 |
1144 |
1609 |
66 |
| 656 |
1143 |
1600 |
66 |
| 656 |
856 |
1599 |
66 |
| 656 |
1540 |
1912 |
114 |
| 656 |
1541 |
1559 |
114 |
| 656 |
1542 |
1559 |
115 |
| 656 |
1543 |
1607 |
115 |
| 656 |
1544 |
1607 |
116 |
| 656 |
1545 |
1559 |
116 |
| 656 |
2258 |
1558 |
158 |
| 656 |
2257 |
1600 |
158 |
| 656 |
2256 |
1560 |
158 |
| 656 |
2255 |
1559 |
158 |
| 656 |
2260 |
2443 |
159 |
| 656 |
2259 |
2442 |
159 |
| 656 |
2251 |
2441 |
159 |
| 656 |
2262 |
2444 |
160 |
| 656 |
2261 |
1606 |
160 |
| 656 |
2252 |
1597 |
160 |
| 656 |
2265 |
1558 |
161 |
| 656 |
2264 |
1600 |
161 |
| 656 |
2263 |
1559 |
161 |
| 656 |
2253 |
1560 |
161 |
| 656 |
2267 |
1560 |
162 |
| 656 |
2266 |
1559 |
162 |
| 656 |
2254 |
1600 |
162 |
| 656 |
2559 |
1560 |
219 |
| 656 |
2560 |
1559 |
219 |
| 656 |
3663 |
1596 |
219 |
| 656 |
2729 |
1560 |
268 |
| 656 |
2730 |
1559 |
268 |
| 656 |
2731 |
1600 |
268 |
| 656 |
2732 |
1558 |
268 |
| 656 |
2746 |
1559 |
272 |
| 656 |
2747 |
1609 |
272 |
| 656 |
2749 |
1560 |
272 |
| 656 |
2750 |
1724 |
272 |
| 656 |
2751 |
1783 |
272 |
| 656 |
2752 |
1724 |
273 |
| 656 |
2753 |
1559 |
273 |
| 656 |
2754 |
1560 |
273 |
| 656 |
2755 |
1609 |
273 |
| 656 |
2756 |
1783 |
273 |
| 656 |
2757 |
2444 |
273 |
| 656 |
2822 |
1560 |
284 |
| 656 |
2823 |
1559 |
284 |
| 656 |
2824 |
1755 |
284 |
| 656 |
2825 |
1682 |
284 |
| 656 |
2826 |
1558 |
284 |
| 656 |
2869 |
1560 |
297 |
| 656 |
2870 |
1600 |
297 |
| 656 |
2871 |
2460 |
297 |
| 656 |
2927 |
1560 |
307 |
| 656 |
2928 |
1559 |
307 |
| 656 |
2929 |
1600 |
307 |
| 656 |
2930 |
1609 |
307 |
| 656 |
3026 |
1596 |
320 |
| 656 |
3030 |
1560 |
320 |
| 656 |
3029 |
1559 |
320 |
| 656 |
3090 |
1560 |
340 |
| 656 |
3091 |
1559 |
340 |
| 656 |
3092 |
1596 |
340 |
| 656 |
3093 |
1600 |
340 |
| 656 |
3094 |
1558 |
340 |
| 656 |
3140 |
1560 |
350 |
| 656 |
3141 |
1559 |
350 |