Query time 0.00274
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "41.46"
},
"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": 33,
"rows_produced_per_join": 33,
"filtered": "100.00",
"index_condition": "(`wearethehelpful_scalesta_net`.`gp`.`group_id` in (83,82,81,80,79,78,77,76,75,74,73,72,71,69))",
"cost_info": {
"read_cost": "15.06",
"eval_cost": "3.30",
"prefix_cost": "18.36",
"data_read_per_join": "528"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"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": [
"wearethehelpful_scalesta_net.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.25",
"eval_cost": "3.30",
"prefix_cost": "29.91",
"data_read_per_join": "3K"
},
"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": [
"wearethehelpful_scalesta_net.gpf.feature_id",
"wearethehelpful_scalesta_net.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.25",
"eval_cost": "3.30",
"prefix_cost": "41.46",
"data_read_per_join": "25K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 555 |
1250 |
1245 |
69 |
| 555 |
1251 |
1283 |
69 |
| 555 |
1254 |
1245 |
71 |
| 555 |
1255 |
1283 |
71 |
| 555 |
1256 |
1341 |
72 |
| 555 |
1257 |
1342 |
72 |
| 555 |
1258 |
1245 |
73 |
| 555 |
1259 |
1283 |
73 |
| 555 |
1260 |
1343 |
73 |
| 555 |
1261 |
1245 |
74 |
| 555 |
1262 |
1283 |
74 |
| 555 |
1263 |
1343 |
74 |
| 555 |
1264 |
1245 |
75 |
| 555 |
1265 |
1283 |
75 |
| 555 |
1266 |
1343 |
75 |
| 555 |
1267 |
1344 |
76 |
| 555 |
1268 |
1245 |
76 |
| 555 |
1269 |
1283 |
76 |
| 555 |
1270 |
1343 |
76 |
| 555 |
1271 |
1245 |
77 |
| 555 |
1272 |
1283 |
77 |
| 555 |
1273 |
1343 |
77 |
| 555 |
1274 |
1245 |
78 |
| 555 |
1275 |
1283 |
78 |
| 555 |
1276 |
1343 |
78 |
| 555 |
1277 |
1341 |
79 |
| 555 |
1278 |
1342 |
79 |
| 555 |
1279 |
1245 |
80 |
| 555 |
1280 |
1283 |
80 |
| 555 |
1281 |
1343 |
80 |
| 555 |
1282 |
1345 |
80 |
| 555 |
1283 |
1245 |
81 |
| 555 |
1284 |
1283 |
81 |
| 555 |
1285 |
1343 |
81 |
| 555 |
1286 |
1345 |
81 |
| 555 |
1287 |
1245 |
82 |
| 555 |
1288 |
1283 |
82 |
| 555 |
1289 |
1343 |
82 |
| 555 |
1290 |
1345 |
82 |
| 555 |
1291 |
1245 |
83 |
| 555 |
1292 |
1283 |
83 |
| 555 |
1293 |
1343 |
83 |
| 555 |
1294 |
1345 |
83 |