Query time 0.00140
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "79.06"
},
"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": 27,
"rows_produced_per_join": 54,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.06",
"eval_cost": "10.80",
"prefix_cost": "14.26",
"data_read_per_join": "864"
},
"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": 54,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "54.00",
"eval_cost": "10.80",
"prefix_cost": "79.06",
"data_read_per_join": "41K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
626 |
431561 |
7160 |
10690 |
626 |
431562 |
7168 |
10690 |
626 |
431563 |
7161 |
10690 |
626 |
431564 |
7162 |
10690 |
626 |
431565 |
7163 |
10690 |
626 |
431566 |
7164 |
10690 |
626 |
431567 |
7165 |
10690 |
626 |
431568 |
7166 |
10690 |
626 |
431569 |
7167 |
10690 |
626 |
431587 |
7168 |
10690 |
626 |
431588 |
7168 |
10690 |
626 |
431589 |
7160 |
10690 |
626 |
431590 |
7160 |
10690 |
626 |
431591 |
7161 |
10690 |
626 |
431592 |
7161 |
10690 |
626 |
431593 |
7162 |
10690 |
626 |
431594 |
7162 |
10690 |
626 |
431595 |
7163 |
10690 |
626 |
431596 |
7163 |
10690 |
626 |
431597 |
7164 |
10690 |
626 |
431598 |
7164 |
10690 |
626 |
431599 |
7165 |
10690 |
626 |
431600 |
7165 |
10690 |
626 |
431601 |
7166 |
10690 |
626 |
431602 |
7166 |
10690 |
626 |
431603 |
7167 |
10690 |
626 |
431604 |
7167 |
10690 |
860 |
431561 |
64236 |
10690 |
860 |
431562 |
64236 |
10690 |
860 |
431563 |
64236 |
10690 |
860 |
431564 |
64236 |
10690 |
860 |
431565 |
64236 |
10690 |
860 |
431566 |
64236 |
10690 |
860 |
431567 |
64236 |
10690 |
860 |
431568 |
64236 |
10690 |
860 |
431569 |
64236 |
10690 |
860 |
431587 |
64545 |
10690 |
860 |
431588 |
65265 |
10690 |
860 |
431589 |
64545 |
10690 |
860 |
431590 |
65265 |
10690 |
860 |
431591 |
64545 |
10690 |
860 |
431592 |
65265 |
10690 |
860 |
431593 |
64545 |
10690 |
860 |
431594 |
65265 |
10690 |
860 |
431595 |
64545 |
10690 |
860 |
431596 |
65265 |
10690 |
860 |
431597 |
64545 |
10690 |
860 |
431598 |
65265 |
10690 |
860 |
431599 |
64545 |
10690 |
860 |
431600 |
65265 |
10690 |
860 |
431601 |
64545 |
10690 |
860 |
431602 |
65265 |
10690 |
860 |
431603 |
64545 |
10690 |
860 |
431604 |
65265 |
10690 |