Query time 0.00104
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "41.76"
},
"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": 12,
"rows_produced_per_join": 12,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`gpf`.`group_id` in (193,148,144,156,161,165,129,158,182,160,244))",
"cost_info": {
"read_cost": "6.96",
"eval_cost": "1.20",
"prefix_cost": "8.16",
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "4.80",
"prefix_cost": "24.96",
"data_read_per_join": "768"
},
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "4.80",
"prefix_cost": "41.76",
"data_read_per_join": "37K"
},
"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 |
51281 |
1361 |
165 |
| 193 |
51280 |
1360 |
165 |
| 193 |
51279 |
1359 |
165 |
| 193 |
51278 |
1358 |
165 |
| 193 |
51282 |
1362 |
165 |
| 193 |
7 |
1357 |
165 |
| 193 |
16 |
1373 |
182 |
| 193 |
54 |
1357 |
193 |
| 193 |
51313 |
1361 |
193 |
| 193 |
51312 |
1360 |
193 |
| 193 |
51314 |
1362 |
193 |
| 193 |
51311 |
1359 |
193 |
| 193 |
51310 |
1358 |
193 |
| 193 |
89 |
1357 |
244 |
| 193 |
51390 |
1358 |
244 |
| 193 |
51391 |
1359 |
244 |
| 193 |
51392 |
1360 |
244 |
| 193 |
51393 |
1361 |
244 |
| 193 |
51394 |
1362 |
244 |