Query time 0.00080
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "144.01"
},
"nested_loop": [
{
"table": {
"table_name": "gpf",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "4",
"rows_examined_per_scan": 10,
"rows_produced_per_join": 10,
"filtered": "100.00",
"index_condition": "(`portal`.`gpf`.`group_id` in (59,60,61,62,58,48,29,42,21,22))",
"cost_info": {
"read_cost": "22.01",
"eval_cost": "2.00",
"prefix_cost": "24.01",
"data_read_per_join": "1K"
},
"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": "4",
"ref": [
"portal.gpf.group_id"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "50.00",
"eval_cost": "10.00",
"prefix_cost": "84.01",
"data_read_per_join": "800"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl"
],
"key": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"portal.gpf.feature_id",
"portal.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 50,
"filtered": "100.00",
"index_condition": "((`portal`.`gpf`.`feature_id` = `portal`.`pfv`.`feature_id`) and (`portal`.`pfv`.`product_id` = `portal`.`gp`.`product_id`))",
"cost_info": {
"read_cost": "50.00",
"eval_cost": "10.00",
"prefix_cost": "144.01",
"data_read_per_join": "38K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
73 |
2388 |
9803 |
21 |
73 |
2505 |
9820 |
21 |
73 |
2391 |
9803 |
22 |
73 |
2507 |
9805 |
22 |
73 |
2802 |
9801 |
29 |
73 |
2894 |
9802 |
29 |
73 |
2895 |
9803 |
29 |
73 |
2896 |
9804 |
29 |
73 |
2897 |
9805 |
29 |
73 |
2808 |
9801 |
42 |
73 |
3372 |
9802 |
42 |
73 |
3373 |
9803 |
42 |
73 |
3374 |
9804 |
42 |
73 |
3375 |
9805 |
42 |
73 |
3012 |
9801 |
48 |
73 |
5926 |
9802 |
48 |
73 |
5927 |
9803 |
48 |
73 |
5928 |
9804 |
48 |
73 |
5929 |
9805 |
48 |
73 |
3007 |
9801 |
58 |
73 |
6089 |
9802 |
58 |
73 |
6090 |
9803 |
58 |
73 |
6091 |
9804 |
58 |
73 |
6092 |
9805 |
58 |
73 |
2988 |
9802 |
59 |
73 |
6094 |
9803 |
59 |
73 |
6095 |
9804 |
59 |
73 |
6096 |
9805 |
59 |
73 |
2992 |
9801 |
60 |
73 |
6098 |
9802 |
60 |
73 |
6099 |
9803 |
60 |
73 |
6100 |
9804 |
60 |
73 |
6101 |
9805 |
60 |
73 |
2997 |
9801 |
61 |
73 |
6103 |
9802 |
61 |
73 |
6104 |
9803 |
61 |
73 |
6105 |
9804 |
61 |
73 |
6106 |
9805 |
61 |
73 |
3002 |
9801 |
62 |
73 |
6108 |
9802 |
62 |
73 |
6109 |
9803 |
62 |
73 |
6110 |
9804 |
62 |
73 |
6111 |
9805 |
62 |