Query time 0.00169
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.10"
},
"nested_loop": [
{
"table": {
"table_name": "v",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id"
],
"key_length": "6",
"rows_examined_per_scan": 35,
"rows_produced_per_join": 35,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.10",
"eval_cost": "3.50",
"prefix_cost": "7.60",
"data_read_per_join": "27K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id"
],
"attached_condition": "((`cscartdb`.`v`.`feature_id` = 1199) and (`cscartdb`.`v`.`product_id` in ('35187','35188','35178','35186','35185','35184','35183','35182','35181','35180','35179','35169','35177','35176','35175','35174','35173','35172','35171','35170','35160','35168','35167','35166','35165','35164','35163','35162','35161','35159','35158','35157','35156','35155','17379')))"
}
},
{
"table": {
"table_name": "vd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscartdb.v.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.75",
"eval_cost": "3.50",
"prefix_cost": "19.85",
"data_read_per_join": "105K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
},
{
"table": {
"table_name": "vf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"cscartdb.v.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.75",
"eval_cost": "3.50",
"prefix_cost": "32.10",
"data_read_per_join": "39K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
}
]
}
}
Result
variant_id |
product_id |
variant |
position |
color |
4613 |
17379 |
Full set/XS |
0 |
#000000 |
4614 |
35155 |
Full set/S |
1 |
#000000 |
4615 |
35156 |
Full set/M |
2 |
#000000 |
4616 |
35157 |
Full set/L |
3 |
#000000 |
4617 |
35158 |
Full set/XL |
4 |
#000000 |
4618 |
35159 |
Full set/2XL |
5 |
#000000 |
4619 |
35160 |
Full set/3XL |
6 |
#000000 |
4620 |
35161 |
Full set+Pasties/XS |
7 |
#000000 |
4621 |
35162 |
Full set+Pasties/S |
8 |
#000000 |
4622 |
35163 |
Full set+Pasties/M |
9 |
#000000 |
4623 |
35164 |
Full set+Pasties/L |
10 |
#000000 |
4624 |
35165 |
Full set+Pasties/XL |
11 |
#000000 |
4625 |
35166 |
Full set+Pasties/2XL |
12 |
#000000 |
4626 |
35167 |
Full set+Pasties/3XL |
13 |
#000000 |
4627 |
35168 |
Panties/XS |
14 |
#000000 |
4628 |
35169 |
Panties/S |
15 |
#000000 |
4629 |
35170 |
Panties/M |
16 |
#000000 |
4630 |
35171 |
Panties/L |
17 |
#000000 |
4631 |
35172 |
Panties/XL |
18 |
#000000 |
4632 |
35173 |
Panties/2XL |
19 |
#000000 |
4633 |
35174 |
Panties/3XL |
20 |
#000000 |
4634 |
35175 |
Bra/XS |
21 |
#000000 |
4635 |
35176 |
Bra/S |
22 |
#000000 |
4636 |
35177 |
Bra/M |
23 |
#000000 |
4637 |
35178 |
Bra/L |
24 |
#000000 |
4638 |
35179 |
Bra/XL |
25 |
#000000 |
4639 |
35180 |
Bra/2XL |
26 |
#000000 |
4640 |
35181 |
Bra/3XL |
27 |
#000000 |
4641 |
35182 |
Bra+Pasties/XS |
28 |
#000000 |
4642 |
35183 |
Bra+Pasties/S |
29 |
#000000 |
4643 |
35184 |
Bra+Pasties/M |
30 |
#000000 |
4644 |
35185 |
Bra+Pasties/L |
31 |
#000000 |
4645 |
35186 |
Bra+Pasties/XL |
32 |
#000000 |
4646 |
35187 |
Bra+Pasties/2XL |
33 |
#000000 |
4647 |
35188 |
Bra+Pasties/3XL |
34 |
#000000 |