Query time 0.00096
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "51.16"
},
"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": 41,
"rows_produced_per_join": 41,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`gp`.`group_id` in (172,163,209,222,178,197,230,199,196,252,240,200,201,203,241,239))",
"cost_info": {
"read_cost": "18.36",
"eval_cost": "4.10",
"prefix_cost": "22.46",
"data_read_per_join": "656"
},
"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": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.25",
"eval_cost": "4.10",
"prefix_cost": "36.81",
"data_read_per_join": "4K"
},
"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": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.25",
"eval_cost": "4.10",
"prefix_cost": "51.16",
"data_read_per_join": "31K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 193 |
51272 |
1364 |
163 |
| 193 |
51271 |
1363 |
163 |
| 193 |
51270 |
1362 |
163 |
| 193 |
51269 |
1361 |
163 |
| 193 |
51268 |
1360 |
163 |
| 193 |
51267 |
1359 |
163 |
| 193 |
51266 |
1358 |
163 |
| 193 |
145 |
1357 |
163 |
| 193 |
60 |
1373 |
172 |
| 193 |
14 |
1373 |
178 |
| 193 |
127 |
1377 |
196 |
| 193 |
51325 |
1378 |
196 |
| 193 |
63 |
1379 |
197 |
| 193 |
50984 |
1380 |
199 |
| 193 |
51450 |
1377 |
199 |
| 193 |
51451 |
1393 |
199 |
| 193 |
51329 |
1361 |
200 |
| 193 |
51328 |
1360 |
200 |
| 193 |
51327 |
1359 |
200 |
| 193 |
50985 |
1358 |
200 |
| 193 |
51331 |
1360 |
201 |
| 193 |
51330 |
1359 |
201 |
| 193 |
50986 |
1358 |
201 |
| 193 |
51332 |
1361 |
201 |
| 193 |
51339 |
1361 |
203 |
| 193 |
51338 |
1360 |
203 |
| 193 |
51337 |
1359 |
203 |
| 193 |
51336 |
1358 |
203 |
| 193 |
50988 |
1357 |
203 |
| 193 |
113 |
1373 |
209 |
| 193 |
6 |
1373 |
222 |
| 193 |
136 |
1373 |
230 |
| 193 |
50992 |
1358 |
239 |
| 193 |
51374 |
1359 |
239 |
| 193 |
51375 |
1360 |
239 |
| 193 |
42 |
1357 |
240 |
| 193 |
51376 |
1358 |
240 |
| 193 |
51377 |
1359 |
240 |
| 193 |
51378 |
1360 |
240 |
| 193 |
51379 |
1361 |
240 |
| 193 |
51380 |
1362 |
240 |
| 193 |
50993 |
1359 |
241 |
| 193 |
51381 |
1360 |
241 |
| 193 |
51382 |
1361 |
241 |
| 193 |
134 |
1373 |
252 |