Query time 0.00199
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "74.15"
},
"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": 5,
"rows_produced_per_join": 5,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.01",
"eval_cost": "1.00",
"prefix_cost": "3.01",
"data_read_per_join": "520"
},
"used_columns": [
"feature_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gpf`.`group_id` in (7059,7512,7899,9124))"
}
},
{
"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": 47,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "5.05",
"eval_cost": "9.44",
"prefix_cost": "17.50",
"data_read_per_join": "755"
},
"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": 47,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "47.20",
"eval_cost": "9.44",
"prefix_cost": "74.15",
"data_read_per_join": "36K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
976 |
270188 |
64434 |
7059 |
976 |
271631 |
64435 |
7059 |
976 |
271632 |
64436 |
7059 |
976 |
271633 |
64437 |
7059 |
976 |
271634 |
64438 |
7059 |
860 |
286355 |
64062 |
7512 |
860 |
286356 |
60615 |
7512 |
860 |
286357 |
64236 |
7512 |
860 |
369575 |
64062 |
7899 |
860 |
369577 |
64475 |
7899 |
860 |
369578 |
64545 |
7899 |
860 |
369579 |
64753 |
7899 |
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 |