Query time 0.00074
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "71.75"
},
"nested_loop": [
{
"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": [
"const"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.25",
"eval_cost": "0.50",
"prefix_cost": "1.75",
"data_read_per_join": "520"
},
"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": [
"const"
],
"rows_examined_per_scan": 20,
"rows_produced_per_join": 100,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "10.00",
"prefix_cost": "36.75",
"data_read_per_join": "1K"
},
"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": [
"gaseus.gpf.feature_id",
"gaseus.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 100,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "10.00",
"prefix_cost": "71.75",
"data_read_per_join": "77K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 553 |
10943 |
1324 |
456 |
| 553 |
10944 |
1324 |
456 |
| 553 |
10945 |
1324 |
456 |
| 553 |
10946 |
1324 |
456 |
| 553 |
10947 |
1324 |
456 |
| 553 |
10948 |
1324 |
456 |
| 553 |
10949 |
1324 |
456 |
| 553 |
10950 |
1324 |
456 |
| 553 |
10951 |
1324 |
456 |
| 553 |
10952 |
1324 |
456 |
| 553 |
10953 |
1324 |
456 |
| 553 |
10954 |
2197 |
456 |
| 553 |
10955 |
2197 |
456 |
| 553 |
10956 |
2197 |
456 |
| 553 |
10957 |
2197 |
456 |
| 553 |
10958 |
2197 |
456 |
| 553 |
10959 |
2197 |
456 |
| 553 |
10960 |
2197 |
456 |
| 553 |
10961 |
2197 |
456 |
| 553 |
10962 |
2197 |
456 |
| 553 |
10963 |
2197 |
456 |
| 553 |
10964 |
2197 |
456 |
| 624 |
10943 |
1705 |
456 |
| 624 |
10944 |
1705 |
456 |
| 624 |
10945 |
1705 |
456 |
| 624 |
10946 |
1705 |
456 |
| 624 |
10947 |
1705 |
456 |
| 624 |
10948 |
1705 |
456 |
| 624 |
10949 |
1705 |
456 |
| 624 |
10950 |
1705 |
456 |
| 624 |
10951 |
1705 |
456 |
| 624 |
10952 |
1705 |
456 |
| 624 |
10953 |
1705 |
456 |
| 624 |
10954 |
1705 |
456 |
| 624 |
10955 |
1705 |
456 |
| 624 |
10956 |
1705 |
456 |
| 624 |
10957 |
1705 |
456 |
| 624 |
10958 |
1705 |
456 |
| 624 |
10959 |
1705 |
456 |
| 624 |
10960 |
1705 |
456 |
| 624 |
10961 |
1705 |
456 |
| 624 |
10962 |
1705 |
456 |
| 624 |
10963 |
1705 |
456 |
| 624 |
10964 |
1705 |
456 |
| 623 |
10943 |
1975 |
456 |
| 623 |
10944 |
2082 |
456 |
| 623 |
10945 |
2092 |
456 |
| 623 |
10946 |
2083 |
456 |
| 623 |
10947 |
2084 |
456 |
| 623 |
10948 |
2085 |
456 |
| 623 |
10949 |
2086 |
456 |
| 623 |
10950 |
2087 |
456 |
| 623 |
10951 |
2088 |
456 |
| 623 |
10952 |
2089 |
456 |
| 623 |
10953 |
2093 |
456 |
| 623 |
10954 |
1975 |
456 |
| 623 |
10955 |
2082 |
456 |
| 623 |
10956 |
2092 |
456 |
| 623 |
10957 |
2083 |
456 |
| 623 |
10958 |
2084 |
456 |
| 623 |
10959 |
2085 |
456 |
| 623 |
10960 |
2086 |
456 |
| 623 |
10961 |
2087 |
456 |
| 623 |
10962 |
2088 |
456 |
| 623 |
10963 |
2089 |
456 |
| 623 |
10964 |
2093 |
456 |