Query time 0.00104
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "35.01"
},
"nested_loop": [
{
"table": {
"table_name": "gpf",
"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": 10,
"rows_produced_per_join": 10,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`gpf`.`group_id` in (193,148,161,144,156,165,158,129,162,160))",
"cost_info": {
"read_cost": "6.01",
"eval_cost": "1.00",
"prefix_cost": "7.01",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gp",
"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.gpf.group_id"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.00",
"eval_cost": "4.00",
"prefix_cost": "21.01",
"data_read_per_join": "640"
},
"used_columns": [
"product_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": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.00",
"eval_cost": "4.00",
"prefix_cost": "35.01",
"data_read_per_join": "30K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 193 |
130 |
1357 |
129 |
| 193 |
51106 |
1358 |
129 |
| 193 |
51107 |
1359 |
129 |
| 193 |
51112 |
1364 |
129 |
| 193 |
51111 |
1363 |
129 |
| 193 |
51110 |
1362 |
129 |
| 193 |
51109 |
1361 |
129 |
| 193 |
51108 |
1360 |
129 |
| 193 |
51182 |
1370 |
144 |
| 193 |
51181 |
1369 |
144 |
| 193 |
51180 |
1368 |
144 |
| 193 |
51179 |
1367 |
144 |
| 193 |
51178 |
1366 |
144 |
| 193 |
51177 |
1365 |
144 |
| 193 |
93 |
1371 |
144 |
| 193 |
10 |
1373 |
148 |
| 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 |
51246 |
1360 |
158 |
| 193 |
51245 |
1359 |
158 |
| 193 |
51244 |
1358 |
158 |
| 193 |
35 |
1357 |
158 |
| 193 |
51248 |
1362 |
158 |
| 193 |
51247 |
1361 |
158 |
| 193 |
51256 |
1360 |
160 |
| 193 |
51255 |
1359 |
160 |
| 193 |
51254 |
1358 |
160 |
| 193 |
33 |
1357 |
160 |
| 193 |
51257 |
1358 |
161 |
| 193 |
32 |
1357 |
161 |
| 193 |
51258 |
1359 |
161 |
| 193 |
51265 |
1364 |
162 |
| 193 |
51264 |
1363 |
162 |
| 193 |
51263 |
1362 |
162 |
| 193 |
51262 |
1361 |
162 |
| 193 |
51261 |
1360 |
162 |
| 193 |
51260 |
1359 |
162 |
| 193 |
51259 |
1358 |
162 |
| 193 |
110 |
1357 |
162 |
| 193 |
51281 |
1361 |
165 |
| 193 |
51280 |
1360 |
165 |
| 193 |
51279 |
1359 |
165 |
| 193 |
51278 |
1358 |
165 |
| 193 |
51282 |
1362 |
165 |
| 193 |
7 |
1357 |
165 |
| 193 |
54 |
1357 |
193 |
| 193 |
51313 |
1361 |
193 |
| 193 |
51312 |
1360 |
193 |
| 193 |
51314 |
1362 |
193 |
| 193 |
51311 |
1359 |
193 |
| 193 |
51310 |
1358 |
193 |