Query time 0.00060
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.16"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"variant_feature_idx",
"idx_var_feat_pos"
],
"key": "idx_var_feat_pos",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.89",
"eval_cost": "2.10",
"prefix_cost": "4.99",
"data_read_per_join": "23K"
},
"used_columns": [
"variant_id",
"position"
],
"attached_condition": "(`cscart_db`.`pfv`.`variant_id` in (62216,10351,62217,62218,62220,62221,62210,62213,62211,62214,62215,62543,19673,10348,62542,62544,62545,62546,62547,62548,62549))"
}
},
{
"table": {
"table_name": "pfvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.06",
"eval_cost": "2.10",
"prefix_cost": "15.16",
"data_read_per_join": "157K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 10348 |
0 |
India |
| 10351 |
0 |
South Korea |
| 19673 |
0 |
3.5 |
| 62210 |
0 |
01 Raspberry Pop |
| 62211 |
0 |
02 Mono Plum |
| 62213 |
0 |
04 Milk Strawberry |
| 62214 |
0 |
05 Pink Tangerine |
| 62215 |
0 |
06 Grape Soda |
| 62216 |
0 |
01 Real Cherry |
| 62217 |
0 |
02 Plum Berry |
| 62218 |
0 |
03 Neon Pink |
| 62220 |
0 |
05 Red oil |
| 62221 |
0 |
06 Pink oil |
| 62542 |
0 |
#802 Cherry Red |
| 62543 |
0 |
#803 Orange |
| 62544 |
0 |
#804 Coral |
| 62545 |
0 |
#805 Light Coral |
| 62546 |
0 |
#806 Rose |
| 62547 |
0 |
#808 Warm Red |
| 62548 |
0 |
#809 Chili Red |
| 62549 |
0 |
#810 brick Red |