Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "88.66"
},
"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": 3,
"rows_produced_per_join": 3,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.60",
"prefix_cost": "1.60",
"data_read_per_join": "312"
},
"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": 60,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.06",
"eval_cost": "12.00",
"prefix_cost": "16.66",
"data_read_per_join": "960"
},
"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": 60,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "60.00",
"eval_cost": "12.00",
"prefix_cost": "88.66",
"data_read_per_join": "46K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
999 |
359780 |
64452 |
7609 |
999 |
359781 |
64452 |
7609 |
999 |
359782 |
64453 |
7609 |
999 |
359783 |
64453 |
7609 |
999 |
359784 |
64452 |
7609 |
999 |
359785 |
64452 |
7609 |
999 |
359786 |
64453 |
7609 |
999 |
359787 |
64453 |
7609 |
999 |
359788 |
64452 |
7609 |
999 |
359789 |
64452 |
7609 |
999 |
359790 |
64453 |
7609 |
999 |
359791 |
64453 |
7609 |
999 |
359792 |
64452 |
7609 |
999 |
359793 |
64452 |
7609 |
999 |
359794 |
64453 |
7609 |
999 |
359795 |
64453 |
7609 |
999 |
359796 |
64452 |
7609 |
999 |
359797 |
64452 |
7609 |
999 |
359798 |
64453 |
7609 |
999 |
359799 |
64453 |
7609 |
1048 |
359780 |
65003 |
7609 |
1048 |
359781 |
65002 |
7609 |
1048 |
359782 |
65002 |
7609 |
1048 |
359783 |
65003 |
7609 |
1048 |
359784 |
65003 |
7609 |
1048 |
359785 |
65002 |
7609 |
1048 |
359786 |
65002 |
7609 |
1048 |
359787 |
65003 |
7609 |
1048 |
359788 |
65003 |
7609 |
1048 |
359789 |
65002 |
7609 |
1048 |
359790 |
65002 |
7609 |
1048 |
359791 |
65003 |
7609 |
1048 |
359792 |
65003 |
7609 |
1048 |
359793 |
65002 |
7609 |
1048 |
359794 |
65002 |
7609 |
1048 |
359795 |
65003 |
7609 |
1048 |
359796 |
65003 |
7609 |
1048 |
359797 |
65002 |
7609 |
1048 |
359798 |
65002 |
7609 |
1048 |
359799 |
65003 |
7609 |
1049 |
359780 |
65004 |
7609 |
1049 |
359781 |
65004 |
7609 |
1049 |
359782 |
65004 |
7609 |
1049 |
359783 |
65004 |
7609 |
1049 |
359784 |
65005 |
7609 |
1049 |
359785 |
65005 |
7609 |
1049 |
359786 |
65005 |
7609 |
1049 |
359787 |
65005 |
7609 |
1049 |
359788 |
65006 |
7609 |
1049 |
359789 |
65006 |
7609 |
1049 |
359790 |
65006 |
7609 |
1049 |
359791 |
65006 |
7609 |
1049 |
359792 |
65007 |
7609 |
1049 |
359793 |
65007 |
7609 |
1049 |
359794 |
65007 |
7609 |
1049 |
359795 |
65007 |
7609 |
1049 |
359796 |
65008 |
7609 |
1049 |
359797 |
65008 |
7609 |
1049 |
359798 |
65008 |
7609 |
1049 |
359799 |
65008 |
7609 |