Query time 0.00130
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "44.89"
},
"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": "3",
"rows_examined_per_scan": 3,
"rows_produced_per_join": 3,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.61",
"eval_cost": "0.60",
"prefix_cost": "2.21",
"data_read_per_join": "312"
},
"used_columns": [
"feature_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gpf`.`group_id` in (7118,7123,7128))"
}
},
{
"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": [
"webmarco.gpf.group_id"
],
"rows_examined_per_scan": 9,
"rows_produced_per_join": 28,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.03",
"eval_cost": "5.66",
"prefix_cost": "10.90",
"data_read_per_join": "453"
},
"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": 28,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "28.32",
"eval_cost": "5.66",
"prefix_cost": "44.89",
"data_read_per_join": "21K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
1004 |
277859 |
64481 |
7118 |
1004 |
277860 |
64484 |
7118 |
1004 |
277861 |
64485 |
7118 |
1004 |
277862 |
64486 |
7118 |
1004 |
277863 |
64487 |
7118 |
1004 |
277864 |
64488 |
7118 |
1004 |
277865 |
64489 |
7118 |
1004 |
277866 |
64490 |
7118 |
1004 |
277867 |
64491 |
7118 |
1004 |
277868 |
64492 |
7118 |
1004 |
277869 |
64493 |
7118 |
1004 |
277870 |
64494 |
7118 |
1004 |
277871 |
64495 |
7118 |
1004 |
277872 |
64496 |
7118 |
1004 |
277873 |
64497 |
7118 |
1004 |
277874 |
64482 |
7118 |
1004 |
277875 |
64483 |
7118 |
1004 |
277935 |
64478 |
7123 |
1004 |
277936 |
64484 |
7123 |
1004 |
277937 |
64485 |
7123 |
1004 |
277938 |
64486 |
7123 |
1004 |
277939 |
64487 |
7123 |
1004 |
277940 |
64488 |
7123 |
1004 |
277941 |
64489 |
7123 |
1004 |
277942 |
64490 |
7123 |
1004 |
277943 |
64491 |
7123 |
1004 |
277944 |
64492 |
7123 |
1004 |
277945 |
64493 |
7123 |
1004 |
277946 |
64494 |
7123 |
1004 |
277947 |
64495 |
7123 |
1004 |
277948 |
64496 |
7123 |
1004 |
277949 |
64497 |
7123 |
1004 |
277950 |
64479 |
7123 |
1004 |
277951 |
64480 |
7123 |
1004 |
277952 |
64481 |
7123 |
1004 |
277953 |
64482 |
7123 |
1004 |
277954 |
64483 |
7123 |
1004 |
278005 |
64478 |
7128 |
1004 |
278017 |
64484 |
7128 |
1004 |
278018 |
64485 |
7128 |
1004 |
278019 |
64486 |
7128 |
1004 |
278020 |
64487 |
7128 |
1004 |
278021 |
64488 |
7128 |
1004 |
278022 |
64489 |
7128 |
1004 |
278023 |
64490 |
7128 |
1004 |
278024 |
64491 |
7128 |
1004 |
278025 |
64492 |
7128 |
1004 |
278026 |
64493 |
7128 |
1004 |
278027 |
64494 |
7128 |
1004 |
278028 |
64495 |
7128 |
1004 |
278029 |
64496 |
7128 |
1004 |
278030 |
64497 |
7128 |
1004 |
278031 |
64479 |
7128 |
1004 |
278032 |
64480 |
7128 |
1004 |
278033 |
64481 |
7128 |
1004 |
278034 |
64482 |
7128 |
1004 |
278035 |
64483 |
7128 |