Query time 0.00272
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "68.50"
},
"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": 75,
"rows_produced_per_join": 75,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "8.50",
"eval_cost": "7.50",
"prefix_cost": "16.00",
"data_read_per_join": "58K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id"
],
"attached_condition": "((`cscartdb`.`v`.`feature_id` = 348) and (`cscartdb`.`v`.`product_id` in ('18638','57377','57378','57379','57380','57381','57382','57383','57384','57385','57386','57387','57388','57389','57390','57391','57392','57393','57394','57395','57396','57397','57398','57399','57400','57401','57402','57403','57404','57405','57406','57407','57408','57409','57410','57411','57412','57413','57414','57415','57416','57417','57418','57419','57420','57421','57422','57423','57424','57425','57426','57427','57428','57429','57430','57431','57432','57433','57434','57435','57436','57437','57438','57439','57440','57441','57442','57443','57444','57445','57446','57447','57448','57449','57450')))"
}
},
{
"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": 75,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.75",
"eval_cost": "7.50",
"prefix_cost": "42.25",
"data_read_per_join": "226K"
},
"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": 75,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.75",
"eval_cost": "7.50",
"prefix_cost": "68.50",
"data_read_per_join": "85K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
}
]
}
}
Result
variant_id |
product_id |
variant |
position |
color |
1741 |
18638 |
Blue Plum |
0 |
#9900ff |
1742 |
57377 |
Floral Pink |
1 |
#000000 |
1743 |
57378 |
Floral Beige |
2 |
#000000 |
1744 |
57379 |
Floral Violet |
3 |
#cec7d4 |
1745 |
57380 |
Lavender Flowers |
4 |
#000000 |
1746 |
57381 |
Blue Stripes |
5 |
#0000ff |
1747 |
57382 |
Spring Flowers |
6 |
#000000 |
1748 |
57383 |
Peach |
7 |
#000000 |
1749 |
57384 |
Sheer Black |
8 |
#000000 |
4171 |
57385 |
Mint |
9 |
#ffffff |
4177 |
57386 |
Pink |
10 |
#ffffff |
4178 |
57387 |
White |
11 |
#ffffff |
4179 |
57388 |
Petrol |
12 |
#ffffff |
4180 |
57389 |
Coral |
13 |
#ffffff |
4181 |
57390 |
Black |
14 |
#ffffff |
1741 |
57391 |
Blue Plum |
0 |
#9900ff |
1742 |
57392 |
Floral Pink |
1 |
#000000 |
1743 |
57393 |
Floral Beige |
2 |
#000000 |
1744 |
57394 |
Floral Violet |
3 |
#cec7d4 |
1745 |
57395 |
Lavender Flowers |
4 |
#000000 |
1746 |
57396 |
Blue Stripes |
5 |
#0000ff |
1747 |
57397 |
Spring Flowers |
6 |
#000000 |
1748 |
57398 |
Peach |
7 |
#000000 |
1749 |
57399 |
Sheer Black |
8 |
#000000 |
4171 |
57400 |
Mint |
9 |
#ffffff |
4177 |
57401 |
Pink |
10 |
#ffffff |
4178 |
57402 |
White |
11 |
#ffffff |
4179 |
57403 |
Petrol |
12 |
#ffffff |
4180 |
57404 |
Coral |
13 |
#ffffff |
4181 |
57405 |
Black |
14 |
#ffffff |
1741 |
57406 |
Blue Plum |
0 |
#9900ff |
1742 |
57407 |
Floral Pink |
1 |
#000000 |
1743 |
57408 |
Floral Beige |
2 |
#000000 |
1744 |
57409 |
Floral Violet |
3 |
#cec7d4 |
1745 |
57410 |
Lavender Flowers |
4 |
#000000 |
1746 |
57411 |
Blue Stripes |
5 |
#0000ff |
1747 |
57412 |
Spring Flowers |
6 |
#000000 |
1748 |
57413 |
Peach |
7 |
#000000 |
1749 |
57414 |
Sheer Black |
8 |
#000000 |
4171 |
57415 |
Mint |
9 |
#ffffff |
4177 |
57416 |
Pink |
10 |
#ffffff |
4178 |
57417 |
White |
11 |
#ffffff |
4179 |
57418 |
Petrol |
12 |
#ffffff |
4180 |
57419 |
Coral |
13 |
#ffffff |
4181 |
57420 |
Black |
14 |
#ffffff |
1741 |
57421 |
Blue Plum |
0 |
#9900ff |
1742 |
57422 |
Floral Pink |
1 |
#000000 |
1743 |
57423 |
Floral Beige |
2 |
#000000 |
1744 |
57424 |
Floral Violet |
3 |
#cec7d4 |
1745 |
57425 |
Lavender Flowers |
4 |
#000000 |
1746 |
57426 |
Blue Stripes |
5 |
#0000ff |
1747 |
57427 |
Spring Flowers |
6 |
#000000 |
1748 |
57428 |
Peach |
7 |
#000000 |
1749 |
57429 |
Sheer Black |
8 |
#000000 |
4171 |
57430 |
Mint |
9 |
#ffffff |
4177 |
57431 |
Pink |
10 |
#ffffff |
4178 |
57432 |
White |
11 |
#ffffff |
4179 |
57433 |
Petrol |
12 |
#ffffff |
4180 |
57434 |
Coral |
13 |
#ffffff |
4181 |
57435 |
Black |
14 |
#ffffff |
1741 |
57436 |
Blue Plum |
0 |
#9900ff |
1742 |
57437 |
Floral Pink |
1 |
#000000 |
1743 |
57438 |
Floral Beige |
2 |
#000000 |
1744 |
57439 |
Floral Violet |
3 |
#cec7d4 |
1745 |
57440 |
Lavender Flowers |
4 |
#000000 |
1746 |
57441 |
Blue Stripes |
5 |
#0000ff |
1747 |
57442 |
Spring Flowers |
6 |
#000000 |
1748 |
57443 |
Peach |
7 |
#000000 |
1749 |
57444 |
Sheer Black |
8 |
#000000 |
4171 |
57445 |
Mint |
9 |
#ffffff |
4177 |
57446 |
Pink |
10 |
#ffffff |
4178 |
57447 |
White |
11 |
#ffffff |
4179 |
57448 |
Petrol |
12 |
#ffffff |
4180 |
57449 |
Coral |
13 |
#ffffff |
4181 |
57450 |
Black |
14 |
#ffffff |