Query time 0.00188
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "95.81"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 28,
"rows_produced_per_join": 28,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "6.64",
"eval_cost": "5.60",
"prefix_cost": "12.24",
"data_read_per_join": "448"
},
"used_columns": [
"product_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gp`.`group_id` in (6893,6963,7025,8413,7026))"
}
},
{
"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": [
"webmarco.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 39,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "28.01",
"eval_cost": "7.94",
"prefix_cost": "48.19",
"data_read_per_join": "4K"
},
"used_columns": [
"feature_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": 39,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "39.68",
"eval_cost": "7.94",
"prefix_cost": "95.81",
"data_read_per_join": "30K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
697 |
262398 |
63646 |
6893 |
935 |
262398 |
63669 |
6893 |
697 |
262852 |
63647 |
6893 |
935 |
262852 |
63669 |
6893 |
697 |
262853 |
63646 |
6893 |
935 |
262853 |
63670 |
6893 |
697 |
262854 |
63647 |
6893 |
935 |
262854 |
63670 |
6893 |
697 |
262855 |
63646 |
6893 |
935 |
262855 |
63671 |
6893 |
697 |
262856 |
63647 |
6893 |
935 |
262856 |
63671 |
6893 |
697 |
262857 |
63646 |
6893 |
935 |
262857 |
63672 |
6893 |
697 |
262858 |
63647 |
6893 |
935 |
262858 |
63672 |
6893 |
697 |
262859 |
63646 |
6893 |
935 |
262859 |
63673 |
6893 |
697 |
262860 |
63647 |
6893 |
935 |
262860 |
63673 |
6893 |
697 |
262924 |
63647 |
6963 |
940 |
262924 |
63947 |
6963 |
697 |
264649 |
63646 |
6963 |
940 |
264649 |
63947 |
6963 |
697 |
264650 |
63646 |
6963 |
940 |
264650 |
63948 |
6963 |
697 |
264651 |
63647 |
6963 |
940 |
264651 |
63948 |
6963 |
697 |
265053 |
63647 |
7025 |
948 |
265053 |
64013 |
7025 |
697 |
265054 |
63646 |
7025 |
948 |
265054 |
64013 |
7025 |
697 |
265055 |
63646 |
7025 |
948 |
265055 |
64014 |
7025 |
697 |
265056 |
63646 |
7025 |
948 |
265056 |
64015 |
7025 |
697 |
265057 |
63647 |
7025 |
948 |
265057 |
64014 |
7025 |
697 |
265058 |
63647 |
7025 |
948 |
265058 |
64015 |
7025 |
697 |
265052 |
63647 |
7026 |
697 |
265059 |
63646 |
7026 |
697 |
388351 |
63647 |
8413 |
1115 |
388351 |
66095 |
8413 |
697 |
388352 |
63646 |
8413 |
1115 |
388352 |
66095 |
8413 |
697 |
388353 |
63646 |
8413 |
1115 |
388353 |
66096 |
8413 |
697 |
388354 |
63646 |
8413 |
1115 |
388354 |
66097 |
8413 |
697 |
388355 |
63647 |
8413 |
1115 |
388355 |
66096 |
8413 |
697 |
388356 |
63647 |
8413 |
1115 |
388356 |
66097 |
8413 |