Query time 0.00151
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "41.36"
},
"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": 34,
"rows_produced_per_join": 34,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`gp`.`group_id` in (217,166,189,156,234,235,236,183,188))",
"cost_info": {
"read_cost": "14.16",
"eval_cost": "3.40",
"prefix_cost": "17.56",
"data_read_per_join": "544"
},
"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": [
"test_uchur_k.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.50",
"eval_cost": "3.40",
"prefix_cost": "29.46",
"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": [
"test_uchur_k.gpf.feature_id",
"test_uchur_k.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.50",
"eval_cost": "3.40",
"prefix_cost": "41.36",
"data_read_per_join": "26K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 193 |
51232 |
1358 |
156 |
| 193 |
12 |
1357 |
156 |
| 193 |
51238 |
1364 |
156 |
| 193 |
51237 |
1363 |
156 |
| 193 |
51236 |
1362 |
156 |
| 193 |
51235 |
1361 |
156 |
| 193 |
51234 |
1360 |
156 |
| 193 |
51233 |
1359 |
156 |
| 193 |
51289 |
1364 |
166 |
| 193 |
51288 |
1363 |
166 |
| 193 |
51287 |
1362 |
166 |
| 193 |
51286 |
1361 |
166 |
| 193 |
51285 |
1360 |
166 |
| 193 |
51284 |
1359 |
166 |
| 193 |
51283 |
1358 |
166 |
| 193 |
8 |
1357 |
166 |
| 193 |
56 |
1373 |
183 |
| 193 |
81 |
1373 |
188 |
| 193 |
11 |
1373 |
189 |
| 193 |
4 |
1373 |
217 |
| 193 |
51361 |
1358 |
234 |
| 193 |
30 |
1357 |
234 |
| 193 |
51362 |
1359 |
234 |
| 193 |
51363 |
1360 |
234 |
| 193 |
51364 |
1361 |
234 |
| 193 |
51365 |
1362 |
234 |
| 193 |
31 |
1357 |
235 |
| 193 |
51366 |
1358 |
235 |
| 193 |
51367 |
1359 |
235 |
| 193 |
51368 |
1360 |
235 |
| 193 |
51369 |
1361 |
235 |
| 193 |
46 |
1358 |
236 |
| 193 |
51370 |
1359 |
236 |
| 193 |
51371 |
1360 |
236 |
| 193 |
51372 |
1361 |
236 |
| 193 |
51373 |
1362 |
236 |
| 193 |
51452 |
1357 |
236 |
| 193 |
51453 |
1363 |
236 |