Query time 0.00457
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "82.15"
},
"nested_loop": [
{
"table": {
"table_name": "v",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id"
],
"key_length": "6",
"rows_examined_per_scan": 90,
"rows_produced_per_join": 90,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "10.15",
"eval_cost": "9.00",
"prefix_cost": "19.15",
"data_read_per_join": "69K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id"
],
"attached_condition": "((`chocoramo`.`v`.`feature_id` = 1392) and (`chocoramo`.`v`.`product_id` in ('19079','56120','56121','56122','56123','56124','56125','56126','56127','56128','56129','56130','56131','56132','56133','56134','56135','56136','56137','56138','56139','56140','56141','56142','56143','56144','56145','56146','56147','56148','56149','56150','56151','56152','56153','56154','56155','56156','56157','56158','56159','56160','56161','56162','56163','56164','56165','56166','56167','56168','56169','56170','56171','56172','56173','56174','56175','56176','56177','56178','56179','56180','56181','56182','56183','56184','56185','56186','56187','56188','56189','56190','56191','56192','56193','56194','56195','56196','56197','56198','56199','56200','56201','56202','56203','56204','56205','56206','56207','56208')))"
}
},
{
"table": {
"table_name": "vd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"chocoramo.v.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 90,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.50",
"eval_cost": "9.00",
"prefix_cost": "50.65",
"data_read_per_join": "272K"
},
"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": [
"chocoramo.v.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 90,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.50",
"eval_cost": "9.00",
"prefix_cost": "82.15",
"data_read_per_join": "102K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
}
]
}
}
Result
variant_id |
product_id |
variant |
position |
color |
5566 |
19079 |
Butterfly |
0 |
#ffffff |
5576 |
56120 |
Floral Pink |
10 |
#ffffff |
5577 |
56121 |
Mint |
11 |
#ffffff |
5578 |
56122 |
Petrol |
12 |
#ffffff |
5579 |
56123 |
White |
13 |
#ffffff |
5580 |
56124 |
Black |
14 |
#ffffff |
5581 |
56125 |
Pink |
15 |
#ffffff |
5582 |
56126 |
Coral |
16 |
#ffffff |
5583 |
56127 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
56128 |
Sheer Black |
1 |
#ffffff |
5568 |
56129 |
Blue Plum |
2 |
#ffffff |
5569 |
56130 |
Blue Stripes |
3 |
#ffffff |
5570 |
56131 |
Lavender Flowers |
4 |
#ffffff |
5571 |
56132 |
Spring Flowers |
5 |
#ffffff |
5572 |
56133 |
Floral Blush |
6 |
#ffffff |
5573 |
56134 |
Floral Mint |
7 |
#ffffff |
5574 |
56135 |
Floral Violet |
8 |
#ffffff |
5575 |
56136 |
Floral Beige |
9 |
#ffffff |
5566 |
56137 |
Butterfly |
0 |
#ffffff |
5576 |
56138 |
Floral Pink |
10 |
#ffffff |
5577 |
56139 |
Mint |
11 |
#ffffff |
5578 |
56140 |
Petrol |
12 |
#ffffff |
5579 |
56141 |
White |
13 |
#ffffff |
5580 |
56142 |
Black |
14 |
#ffffff |
5581 |
56143 |
Pink |
15 |
#ffffff |
5582 |
56144 |
Coral |
16 |
#ffffff |
5583 |
56145 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
56146 |
Sheer Black |
1 |
#ffffff |
5568 |
56147 |
Blue Plum |
2 |
#ffffff |
5569 |
56148 |
Blue Stripes |
3 |
#ffffff |
5570 |
56149 |
Lavender Flowers |
4 |
#ffffff |
5571 |
56150 |
Spring Flowers |
5 |
#ffffff |
5572 |
56151 |
Floral Blush |
6 |
#ffffff |
5573 |
56152 |
Floral Mint |
7 |
#ffffff |
5574 |
56153 |
Floral Violet |
8 |
#ffffff |
5575 |
56154 |
Floral Beige |
9 |
#ffffff |
5566 |
56155 |
Butterfly |
0 |
#ffffff |
5576 |
56156 |
Floral Pink |
10 |
#ffffff |
5577 |
56157 |
Mint |
11 |
#ffffff |
5578 |
56158 |
Petrol |
12 |
#ffffff |
5579 |
56159 |
White |
13 |
#ffffff |
5580 |
56160 |
Black |
14 |
#ffffff |
5581 |
56161 |
Pink |
15 |
#ffffff |
5582 |
56162 |
Coral |
16 |
#ffffff |
5583 |
56163 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
56164 |
Sheer Black |
1 |
#ffffff |
5568 |
56165 |
Blue Plum |
2 |
#ffffff |
5569 |
56166 |
Blue Stripes |
3 |
#ffffff |
5570 |
56167 |
Lavender Flowers |
4 |
#ffffff |
5571 |
56168 |
Spring Flowers |
5 |
#ffffff |
5572 |
56169 |
Floral Blush |
6 |
#ffffff |
5573 |
56170 |
Floral Mint |
7 |
#ffffff |
5574 |
56171 |
Floral Violet |
8 |
#ffffff |
5575 |
56172 |
Floral Beige |
9 |
#ffffff |
5566 |
56173 |
Butterfly |
0 |
#ffffff |
5576 |
56174 |
Floral Pink |
10 |
#ffffff |
5577 |
56175 |
Mint |
11 |
#ffffff |
5578 |
56176 |
Petrol |
12 |
#ffffff |
5579 |
56177 |
White |
13 |
#ffffff |
5580 |
56178 |
Black |
14 |
#ffffff |
5581 |
56179 |
Pink |
15 |
#ffffff |
5582 |
56180 |
Coral |
16 |
#ffffff |
5583 |
56181 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
56182 |
Sheer Black |
1 |
#ffffff |
5568 |
56183 |
Blue Plum |
2 |
#ffffff |
5569 |
56184 |
Blue Stripes |
3 |
#ffffff |
5570 |
56185 |
Lavender Flowers |
4 |
#ffffff |
5571 |
56186 |
Spring Flowers |
5 |
#ffffff |
5572 |
56187 |
Floral Blush |
6 |
#ffffff |
5573 |
56188 |
Floral Mint |
7 |
#ffffff |
5574 |
56189 |
Floral Violet |
8 |
#ffffff |
5575 |
56190 |
Floral Beige |
9 |
#ffffff |
5566 |
56191 |
Butterfly |
0 |
#ffffff |
5576 |
56192 |
Floral Pink |
10 |
#ffffff |
5577 |
56193 |
Mint |
11 |
#ffffff |
5578 |
56194 |
Petrol |
12 |
#ffffff |
5579 |
56195 |
White |
13 |
#ffffff |
5580 |
56196 |
Black |
14 |
#ffffff |
5581 |
56197 |
Pink |
15 |
#ffffff |
5582 |
56198 |
Coral |
16 |
#ffffff |
5583 |
56199 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
56200 |
Sheer Black |
1 |
#ffffff |
5568 |
56201 |
Blue Plum |
2 |
#ffffff |
5569 |
56202 |
Blue Stripes |
3 |
#ffffff |
5570 |
56203 |
Lavender Flowers |
4 |
#ffffff |
5571 |
56204 |
Spring Flowers |
5 |
#ffffff |
5572 |
56205 |
Floral Blush |
6 |
#ffffff |
5573 |
56206 |
Floral Mint |
7 |
#ffffff |
5574 |
56207 |
Floral Violet |
8 |
#ffffff |
5575 |
56208 |
Floral Beige |
9 |
#ffffff |