Query time 0.00140
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.49"
},
"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": 29,
"rows_produced_per_join": 29,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.62",
"eval_cost": "2.90",
"prefix_cost": "6.52",
"data_read_per_join": "33K"
},
"used_columns": [
"variant_id",
"position"
],
"attached_condition": "(`cscart_db`.`pfv`.`variant_id` in (20403,23652,10351,12427,62143,62135,62141,62144,62136,62137,62138,62145,62147,62148,62150,62139,62153,62142,62151,62152,62363,41509,62052,62359,62365,19983,62051,62366,62352))"
}
},
{
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.08",
"eval_cost": "2.90",
"prefix_cost": "22.50",
"data_read_per_join": "217K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 10351 |
0 |
South Korea |
| 12427 |
0 |
30 |
| 19983 |
0 |
4.5 |
| 20403 |
0 |
15 |
| 23652 |
0 |
Black |
| 41509 |
0 |
18 |
| 62051 |
0 |
29N Natural |
| 62052 |
0 |
40N Cinnamon |
| 62135 |
0 |
C01 Porcelain |
| 62136 |
0 |
N1.5 Suede |
| 62137 |
0 |
W01 Vanilla |
| 62138 |
0 |
W02 Almond Butter |
| 62139 |
0 |
W04 Buff |
| 62141 |
0 |
C02 Peach |
| 62142 |
0 |
C03 Rosy |
| 62143 |
0 |
C1.5 Lingerie |
| 62144 |
0 |
N00 Cream |
| 62145 |
0 |
N01 Linen |
| 62147 |
0 |
N03 Ginger |
| 62148 |
0 |
N05 Toffee |
| 62150 |
0 |
W03 Healthy |
| 62151 |
0 |
W06 Bronze |
| 62152 |
0 |
W08 Tan |
| 62153 |
0 |
W2.5 Honey |
| 62352 |
0 |
27C Cool Beigem |
| 62359 |
0 |
34C Amber |
| 62363 |
0 |
37C Almond |
| 62365 |
0 |
51N Fudge |
| 62366 |
0 |
55N Espresso |