Query time 0.00072
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.81"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 17,
"rows_produced_per_join": 17,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`p`.`product_id` in (50,53,91,105,48,30,82,40,17,57,54,35,16,112,19,43,18516))",
"cost_info": {
"read_cost": "10.21",
"eval_cost": "1.70",
"prefix_cost": "11.91",
"data_read_per_join": "272"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": [
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"test_uchur_k.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.25",
"eval_cost": "1.70",
"prefix_cost": "17.86",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "3",
"ref": [
"test_uchur_k.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.25",
"eval_cost": "1.70",
"prefix_cost": "23.81",
"data_read_per_join": "6K"
},
"used_columns": [
"id",
"code"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 193 |
group_variation_catalog_item |
16 |
0 |
182 |
PV-48E305A15 |
| 193 |
group_variation_catalog_item |
17 |
0 |
180 |
PV-5BA2AFCB9 |
| 193 |
group_variation_catalog_item |
19 |
0 |
146 |
PV-65D202732 |
| 193 |
group_variation_catalog_item |
30 |
0 |
234 |
PV-BE27374E3 |
| 193 |
group_variation_catalog_item |
35 |
0 |
158 |
PV-E009A62E9 |
| 193 |
group_variation_catalog_item |
40 |
0 |
135 |
PV-434B8628C |
| 193 |
group_variation_catalog_item |
43 |
0 |
231 |
PV-18C99CA35 |
| 193 |
group_variation_catalog_item |
48 |
0 |
133 |
PV-D447ADA59 |
| 193 |
group_variation_catalog_item |
50 |
0 |
195 |
PV-21031C262 |
| 193 |
group_variation_catalog_item |
53 |
0 |
140 |
PV-8DFBFB3CA |
| 193 |
group_variation_catalog_item |
54 |
0 |
193 |
PV-E6E817B7D |
| 193 |
group_variation_catalog_item |
57 |
0 |
208 |
PV-F40804750 |
| 3 |
group_variation_catalog_item |
82 |
0 |
35 |
PV-3C16D65DC |
| 193 |
group_variation_catalog_item |
91 |
0 |
143 |
PV-BABCDBE20 |
| 193 |
group_variation_catalog_item |
105 |
0 |
206 |
PV-33983CB06 |