Query time 0.00116
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 (9124,6688,6690,6693,6232))"
}
},
{
"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 |
932 |
262367 |
63591 |
6688 |
932 |
262369 |
63592 |
6688 |
897 |
262376 |
62221 |
6690 |
897 |
262377 |
63598 |
6690 |
897 |
262391 |
62228 |
6693 |
897 |
262392 |
63599 |
6693 |
548 |
394196 |
1196 |
9124 |
548 |
394214 |
1193 |
9124 |
548 |
394215 |
1195 |
9124 |
548 |
394216 |
1194 |
9124 |
548 |
394217 |
1197 |
9124 |
548 |
394218 |
1196 |
9124 |
548 |
394219 |
1364 |
9124 |
548 |
394220 |
1193 |
9124 |
548 |
394221 |
1195 |
9124 |
548 |
394222 |
1194 |
9124 |
548 |
394223 |
1197 |
9124 |
548 |
394224 |
1364 |
9124 |
548 |
394225 |
1193 |
9124 |
548 |
394226 |
1195 |
9124 |
548 |
394227 |
1194 |
9124 |
548 |
394228 |
1197 |
9124 |
548 |
394229 |
1196 |
9124 |
548 |
394230 |
1364 |
9124 |
1126 |
394196 |
67013 |
9124 |
1126 |
394214 |
67011 |
9124 |
1126 |
394215 |
67011 |
9124 |
1126 |
394216 |
67011 |
9124 |
1126 |
394217 |
67011 |
9124 |
1126 |
394218 |
67011 |
9124 |
1126 |
394219 |
67011 |
9124 |
1126 |
394220 |
67013 |
9124 |
1126 |
394221 |
67013 |
9124 |
1126 |
394222 |
67013 |
9124 |
1126 |
394223 |
67013 |
9124 |
1126 |
394224 |
67013 |
9124 |
1126 |
394225 |
67291 |
9124 |
1126 |
394226 |
67291 |
9124 |
1126 |
394227 |
67291 |
9124 |
1126 |
394228 |
67291 |
9124 |
1126 |
394229 |
67291 |
9124 |
1126 |
394230 |
67291 |
9124 |