Query time 0.00056
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.81"
},
"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": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.19",
"eval_cost": "1.60",
"prefix_cost": "3.79",
"data_read_per_join": "18K"
},
"used_columns": [
"variant_id",
"position"
],
"attached_condition": "(`cscart_db`.`pfv`.`variant_id` in (10351,62192,62186,62187,62190,62191,62188,62189,10348,62101,19150,24760,62100,62099,62098,62097))"
}
},
{
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.43",
"eval_cost": "1.60",
"prefix_cost": "12.82",
"data_read_per_join": "119K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 10348 |
0 |
India |
| 10351 |
0 |
South Korea |
| 19150 |
0 |
Single |
| 24760 |
0 |
7 |
| 62097 |
0 |
XOXO |
| 62098 |
0 |
Mon Amour |
| 62099 |
0 |
Lover |
| 62100 |
0 |
ILY |
| 62101 |
0 |
Valenmine |
| 62186 |
0 |
10.5 |
| 62187 |
0 |
PK002 Grapefruit Jelly |
| 62188 |
0 |
PK004 Peach Chou Wafers |
| 62189 |
0 |
BE101 Ginger Honey Cookie |
| 62190 |
0 |
OR202 Sweet Coral Candy |
| 62191 |
0 |
RD301 Red Grapefruit Pudding |
| 62192 |
0 |
OR201 Apricot Peach Mousse |