Query time 0.00228
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "44.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": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gpf`.`group_id` in (45,340,273,66,219,175,289,284,236,349,161,293,272,158,231,307))",
"cost_info": {
"read_cost": "9.61",
"eval_cost": "1.60",
"prefix_cost": "11.21",
"data_read_per_join": "1K"
},
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "4.80",
"prefix_cost": "28.01",
"data_read_per_join": "768"
},
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "4.80",
"prefix_cost": "44.81",
"data_read_per_join": "37K"
},
"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 |
| 656 |
1146 |
1707 |
66 |
| 656 |
1145 |
1610 |
66 |
| 656 |
1144 |
1609 |
66 |
| 656 |
1143 |
1600 |
66 |
| 656 |
856 |
1599 |
66 |
| 656 |
2258 |
1558 |
158 |
| 656 |
2257 |
1600 |
158 |
| 656 |
2256 |
1560 |
158 |
| 656 |
2255 |
1559 |
158 |
| 656 |
2265 |
1558 |
161 |
| 656 |
2264 |
1600 |
161 |
| 656 |
2263 |
1559 |
161 |
| 656 |
2253 |
1560 |
161 |
| 656 |
2363 |
2758 |
175 |
| 656 |
2364 |
1600 |
175 |
| 656 |
2365 |
2315 |
175 |
| 656 |
2559 |
1560 |
219 |
| 656 |
2560 |
1559 |
219 |
| 656 |
3663 |
1596 |
219 |
| 656 |
2587 |
1560 |
231 |
| 656 |
2588 |
1559 |
231 |
| 656 |
2589 |
1600 |
231 |
| 656 |
2590 |
2315 |
231 |
| 656 |
2603 |
1600 |
236 |
| 656 |
2609 |
1559 |
236 |
| 656 |
2610 |
1560 |
236 |
| 656 |
2611 |
2315 |
236 |
| 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 |
2842 |
1560 |
289 |
| 656 |
2843 |
1559 |
289 |
| 656 |
2844 |
1596 |
289 |
| 656 |
2845 |
1600 |
289 |
| 656 |
2846 |
2315 |
289 |
| 656 |
2847 |
1558 |
289 |
| 656 |
2854 |
1558 |
293 |
| 656 |
2855 |
1559 |
293 |
| 656 |
2856 |
1560 |
293 |
| 656 |
2857 |
1596 |
293 |
| 656 |
2858 |
1600 |
293 |
| 656 |
2859 |
2315 |
293 |
| 656 |
2927 |
1560 |
307 |
| 656 |
2928 |
1559 |
307 |
| 656 |
2929 |
1600 |
307 |
| 656 |
2930 |
1609 |
307 |
| 656 |
3090 |
1560 |
340 |
| 656 |
3091 |
1559 |
340 |
| 656 |
3092 |
1596 |
340 |
| 656 |
3093 |
1600 |
340 |
| 656 |
3094 |
1558 |
340 |
| 656 |
3136 |
1560 |
349 |
| 656 |
3137 |
1559 |
349 |
| 656 |
3138 |
1783 |
349 |