Query time 0.00095
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.86"
},
"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": 29,
"rows_produced_per_join": 29,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`gp`.`group_id` in (243,237,244,241,239,242))",
"cost_info": {
"read_cost": "11.66",
"eval_cost": "2.90",
"prefix_cost": "14.56",
"data_read_per_join": "464"
},
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.25",
"eval_cost": "2.90",
"prefix_cost": "24.71",
"data_read_per_join": "2K"
},
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.25",
"eval_cost": "2.90",
"prefix_cost": "34.86",
"data_read_per_join": "22K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 193 |
65 |
1393 |
237 |
| 193 |
50992 |
1358 |
239 |
| 193 |
51374 |
1359 |
239 |
| 193 |
51375 |
1360 |
239 |
| 193 |
50993 |
1359 |
241 |
| 193 |
51381 |
1360 |
241 |
| 193 |
51382 |
1361 |
241 |
| 193 |
50994 |
1357 |
242 |
| 193 |
51383 |
1358 |
242 |
| 193 |
51384 |
1359 |
242 |
| 193 |
140 |
1357 |
243 |
| 193 |
51385 |
1358 |
243 |
| 193 |
51386 |
1359 |
243 |
| 193 |
51387 |
1360 |
243 |
| 193 |
51388 |
1361 |
243 |
| 193 |
51389 |
1362 |
243 |
| 193 |
89 |
1357 |
244 |
| 193 |
51390 |
1358 |
244 |
| 193 |
51391 |
1359 |
244 |
| 193 |
51392 |
1360 |
244 |
| 193 |
51393 |
1361 |
244 |
| 193 |
51394 |
1362 |
244 |