Query time 0.00135
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "99.96"
},
"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": 39,
"rows_produced_per_join": 39,
"filtered": "100.00",
"index_condition": "(`gaseus`.`gp`.`group_id` in (456,457))",
"cost_info": {
"read_cost": "14.16",
"eval_cost": "3.90",
"prefix_cost": "18.06",
"data_read_per_join": "624"
},
"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": [
"gaseus.gp.group_id"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 117,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.25",
"eval_cost": "11.70",
"prefix_cost": "59.01",
"data_read_per_join": "11K"
},
"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": [
"gaseus.gpf.feature_id",
"gaseus.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 117,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.25",
"eval_cost": "11.70",
"prefix_cost": "99.96",
"data_read_per_join": "90K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 553 |
10943 |
1324 |
456 |
| 624 |
10943 |
1705 |
456 |
| 623 |
10943 |
1975 |
456 |
| 553 |
10944 |
1324 |
456 |
| 624 |
10944 |
1705 |
456 |
| 623 |
10944 |
2082 |
456 |
| 553 |
10945 |
1324 |
456 |
| 624 |
10945 |
1705 |
456 |
| 623 |
10945 |
2092 |
456 |
| 553 |
10946 |
1324 |
456 |
| 624 |
10946 |
1705 |
456 |
| 623 |
10946 |
2083 |
456 |
| 553 |
10947 |
1324 |
456 |
| 624 |
10947 |
1705 |
456 |
| 623 |
10947 |
2084 |
456 |
| 553 |
10948 |
1324 |
456 |
| 624 |
10948 |
1705 |
456 |
| 623 |
10948 |
2085 |
456 |
| 553 |
10949 |
1324 |
456 |
| 624 |
10949 |
1705 |
456 |
| 623 |
10949 |
2086 |
456 |
| 553 |
10950 |
1324 |
456 |
| 624 |
10950 |
1705 |
456 |
| 623 |
10950 |
2087 |
456 |
| 553 |
10951 |
1324 |
456 |
| 624 |
10951 |
1705 |
456 |
| 623 |
10951 |
2088 |
456 |
| 553 |
10952 |
1324 |
456 |
| 624 |
10952 |
1705 |
456 |
| 623 |
10952 |
2089 |
456 |
| 553 |
10953 |
1324 |
456 |
| 624 |
10953 |
1705 |
456 |
| 623 |
10953 |
2093 |
456 |
| 553 |
10954 |
2197 |
456 |
| 624 |
10954 |
1705 |
456 |
| 623 |
10954 |
1975 |
456 |
| 553 |
10955 |
2197 |
456 |
| 624 |
10955 |
1705 |
456 |
| 623 |
10955 |
2082 |
456 |
| 553 |
10956 |
2197 |
456 |
| 624 |
10956 |
1705 |
456 |
| 623 |
10956 |
2092 |
456 |
| 553 |
10957 |
2197 |
456 |
| 624 |
10957 |
1705 |
456 |
| 623 |
10957 |
2083 |
456 |
| 553 |
10958 |
2197 |
456 |
| 624 |
10958 |
1705 |
456 |
| 623 |
10958 |
2084 |
456 |
| 553 |
10959 |
2197 |
456 |
| 624 |
10959 |
1705 |
456 |
| 623 |
10959 |
2085 |
456 |
| 553 |
10960 |
2197 |
456 |
| 624 |
10960 |
1705 |
456 |
| 623 |
10960 |
2086 |
456 |
| 553 |
10961 |
2197 |
456 |
| 624 |
10961 |
1705 |
456 |
| 623 |
10961 |
2087 |
456 |
| 553 |
10962 |
2197 |
456 |
| 624 |
10962 |
1705 |
456 |
| 623 |
10962 |
2088 |
456 |
| 553 |
10963 |
2197 |
456 |
| 624 |
10963 |
1705 |
456 |
| 623 |
10963 |
2089 |
456 |
| 553 |
10964 |
2197 |
456 |
| 624 |
10964 |
1705 |
456 |
| 623 |
10964 |
2093 |
456 |
| 553 |
10972 |
1324 |
457 |
| 624 |
10972 |
1705 |
457 |
| 623 |
10972 |
2088 |
457 |
| 553 |
10973 |
1324 |
457 |
| 624 |
10973 |
1705 |
457 |
| 623 |
10973 |
2089 |
457 |
| 553 |
10974 |
1324 |
457 |
| 624 |
10974 |
1705 |
457 |
| 623 |
10974 |
2090 |
457 |
| 553 |
10975 |
2197 |
457 |
| 624 |
10975 |
1705 |
457 |
| 623 |
10975 |
1983 |
457 |
| 553 |
10976 |
2197 |
457 |
| 624 |
10976 |
1705 |
457 |
| 623 |
10976 |
2095 |
457 |
| 553 |
10977 |
2197 |
457 |
| 624 |
10977 |
1705 |
457 |
| 623 |
10977 |
2096 |
457 |
| 553 |
10978 |
2197 |
457 |
| 624 |
10978 |
1705 |
457 |
| 623 |
10978 |
2097 |
457 |
| 553 |
10979 |
2197 |
457 |
| 624 |
10979 |
1705 |
457 |
| 623 |
10979 |
2085 |
457 |
| 553 |
10980 |
2197 |
457 |
| 624 |
10980 |
1705 |
457 |
| 623 |
10980 |
2086 |
457 |
| 553 |
10981 |
2197 |
457 |
| 624 |
10981 |
1705 |
457 |
| 623 |
10981 |
2087 |
457 |
| 553 |
10982 |
2197 |
457 |
| 624 |
10982 |
1705 |
457 |
| 623 |
10982 |
2088 |
457 |
| 553 |
10983 |
2197 |
457 |
| 624 |
10983 |
1705 |
457 |
| 623 |
10983 |
2089 |
457 |
| 553 |
10984 |
2197 |
457 |
| 624 |
10984 |
1705 |
457 |
| 623 |
10984 |
2090 |
457 |
| 553 |
10965 |
1324 |
457 |
| 624 |
10965 |
1705 |
457 |
| 623 |
10965 |
1983 |
457 |
| 553 |
10966 |
1324 |
457 |
| 624 |
10966 |
1705 |
457 |
| 623 |
10966 |
2095 |
457 |
| 553 |
10967 |
1324 |
457 |
| 624 |
10967 |
1705 |
457 |
| 623 |
10967 |
2096 |
457 |
| 553 |
10968 |
1324 |
457 |
| 624 |
10968 |
1705 |
457 |
| 623 |
10968 |
2097 |
457 |
| 553 |
10969 |
1324 |
457 |
| 624 |
10969 |
1705 |
457 |
| 623 |
10969 |
2085 |
457 |
| 553 |
10970 |
1324 |
457 |
| 624 |
10970 |
1705 |
457 |
| 623 |
10970 |
2086 |
457 |
| 553 |
10971 |
1324 |
457 |
| 624 |
10971 |
1705 |
457 |
| 623 |
10971 |
2087 |
457 |