Query time 0.00122
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "88.77"
},
"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": 6,
"rows_produced_per_join": 6,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.22",
"eval_cost": "1.20",
"prefix_cost": "3.42",
"data_read_per_join": "624"
},
"used_columns": [
"feature_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gpf`.`group_id` in (6233,6232,6234,6235,6236,6237))"
}
},
{
"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": 56,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "6.06",
"eval_cost": "11.33",
"prefix_cost": "20.80",
"data_read_per_join": "906"
},
"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": 56,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "56.65",
"eval_cost": "11.33",
"prefix_cost": "88.78",
"data_read_per_join": "43K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
697 |
225059 |
62213 |
6232 |
697 |
225060 |
62212 |
6232 |
697 |
225061 |
62214 |
6232 |
697 |
225062 |
62215 |
6232 |
697 |
225063 |
62216 |
6232 |
697 |
225064 |
62217 |
6232 |
697 |
225073 |
62218 |
6232 |
697 |
225053 |
62213 |
6233 |
697 |
225054 |
62212 |
6233 |
697 |
225055 |
62214 |
6233 |
697 |
225056 |
62215 |
6233 |
697 |
225057 |
62216 |
6233 |
697 |
225058 |
62217 |
6233 |
697 |
225065 |
62218 |
6233 |
697 |
225066 |
62213 |
6234 |
697 |
225067 |
62212 |
6234 |
697 |
225068 |
62214 |
6234 |
697 |
225069 |
62215 |
6234 |
697 |
225070 |
62216 |
6234 |
697 |
225071 |
62217 |
6234 |
697 |
225072 |
62218 |
6234 |
697 |
225074 |
62216 |
6235 |
697 |
225075 |
62212 |
6235 |
697 |
225076 |
62213 |
6235 |
697 |
225077 |
62214 |
6235 |
697 |
225078 |
62215 |
6235 |
697 |
225079 |
62217 |
6235 |
697 |
225080 |
62218 |
6235 |
697 |
225081 |
62213 |
6236 |
697 |
225082 |
62212 |
6236 |
697 |
225083 |
62214 |
6236 |
697 |
225084 |
62215 |
6236 |
697 |
225085 |
62216 |
6236 |
697 |
225086 |
62217 |
6236 |
697 |
225087 |
62218 |
6236 |
697 |
225088 |
62213 |
6237 |
697 |
225089 |
62212 |
6237 |
697 |
225090 |
62214 |
6237 |
697 |
225091 |
62215 |
6237 |
697 |
225092 |
62216 |
6237 |
697 |
225093 |
62217 |
6237 |
697 |
225094 |
62218 |
6237 |