Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "70.65"
},
"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": 2,
"rows_produced_per_join": 2,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.40",
"prefix_cost": "1.40",
"data_read_per_join": "208"
},
"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": 24,
"rows_produced_per_join": 48,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.05",
"eval_cost": "9.60",
"prefix_cost": "13.05",
"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": [
"webmarco.gpf.feature_id",
"webmarco.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 48,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "48.00",
"eval_cost": "9.60",
"prefix_cost": "70.65",
"data_read_per_join": "37K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
626 |
431514 |
7165 |
10687 |
626 |
431515 |
7168 |
10687 |
626 |
431516 |
7168 |
10687 |
626 |
431517 |
7168 |
10687 |
626 |
431518 |
7169 |
10687 |
626 |
431519 |
7169 |
10687 |
626 |
431520 |
7169 |
10687 |
626 |
431521 |
7170 |
10687 |
626 |
431522 |
7170 |
10687 |
626 |
431523 |
7170 |
10687 |
626 |
431524 |
7171 |
10687 |
626 |
431525 |
7171 |
10687 |
626 |
431526 |
7171 |
10687 |
626 |
431527 |
38285 |
10687 |
626 |
431528 |
38285 |
10687 |
626 |
431529 |
38285 |
10687 |
626 |
431530 |
7165 |
10687 |
626 |
431531 |
7165 |
10687 |
626 |
431532 |
7166 |
10687 |
626 |
431533 |
7166 |
10687 |
626 |
431534 |
7166 |
10687 |
626 |
431535 |
7167 |
10687 |
626 |
431536 |
7167 |
10687 |
626 |
431537 |
7167 |
10687 |
860 |
431514 |
60615 |
10687 |
860 |
431515 |
60615 |
10687 |
860 |
431516 |
64546 |
10687 |
860 |
431517 |
67701 |
10687 |
860 |
431518 |
60615 |
10687 |
860 |
431519 |
64546 |
10687 |
860 |
431520 |
67701 |
10687 |
860 |
431521 |
60615 |
10687 |
860 |
431522 |
64546 |
10687 |
860 |
431523 |
67701 |
10687 |
860 |
431524 |
60615 |
10687 |
860 |
431525 |
64546 |
10687 |
860 |
431526 |
67701 |
10687 |
860 |
431527 |
60615 |
10687 |
860 |
431528 |
64546 |
10687 |
860 |
431529 |
67701 |
10687 |
860 |
431530 |
64546 |
10687 |
860 |
431531 |
67701 |
10687 |
860 |
431532 |
60615 |
10687 |
860 |
431533 |
64546 |
10687 |
860 |
431534 |
67701 |
10687 |
860 |
431535 |
60615 |
10687 |
860 |
431536 |
64546 |
10687 |
860 |
431537 |
67701 |
10687 |