Query time 0.00050
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.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": 4,
"rows_produced_per_join": 4,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`gpf`.`group_id` in (190,192,191,193))",
"cost_info": {
"read_cost": "2.41",
"eval_cost": "0.40",
"prefix_cost": "2.81",
"data_read_per_join": "416"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "8.41",
"data_read_per_join": "256"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "14.01",
"data_read_per_join": "12K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 193 |
51297 |
1359 |
190 |
| 193 |
51296 |
1358 |
190 |
| 193 |
139 |
1357 |
190 |
| 193 |
51300 |
1362 |
190 |
| 193 |
51299 |
1361 |
190 |
| 193 |
51298 |
1360 |
190 |
| 193 |
51304 |
1362 |
191 |
| 193 |
51303 |
1361 |
191 |
| 193 |
51302 |
1360 |
191 |
| 193 |
51301 |
1359 |
191 |
| 193 |
138 |
1358 |
191 |
| 193 |
51443 |
1357 |
191 |
| 193 |
51309 |
1362 |
192 |
| 193 |
51308 |
1361 |
192 |
| 193 |
51307 |
1360 |
192 |
| 193 |
51306 |
1359 |
192 |
| 193 |
51305 |
1358 |
192 |
| 193 |
129 |
1357 |
192 |
| 193 |
54 |
1357 |
193 |
| 193 |
51313 |
1361 |
193 |
| 193 |
51312 |
1360 |
193 |
| 193 |
51314 |
1362 |
193 |
| 193 |
51311 |
1359 |
193 |
| 193 |
51310 |
1358 |
193 |