Query time 0.00129
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "45.02"
},
"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": 13,
"rows_produced_per_join": 13,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.62",
"eval_cost": "2.60",
"prefix_cost": "6.22",
"data_read_per_join": "208"
},
"used_columns": [
"product_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gp`.`group_id` in (7611,7612,7613,7618,7620))"
}
},
{
"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": 18,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "13.01",
"eval_cost": "3.68",
"prefix_cost": "22.91",
"data_read_per_join": "1K"
},
"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": 18,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "18.42",
"eval_cost": "3.68",
"prefix_cost": "45.02",
"data_read_per_join": "14K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
860 |
366688 |
64062 |
7611 |
860 |
366689 |
64477 |
7611 |
649 |
366690 |
65025 |
7612 |
649 |
366691 |
62608 |
7612 |
649 |
366692 |
62609 |
7612 |
649 |
366693 |
62610 |
7612 |
649 |
366701 |
62611 |
7613 |
649 |
366702 |
62612 |
7613 |
649 |
366703 |
62613 |
7613 |
860 |
366724 |
64062 |
7618 |
860 |
366725 |
64477 |
7618 |
860 |
366729 |
64062 |
7620 |
860 |
366730 |
64477 |
7620 |