Query time 0.00314
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": "((`cscartdb`.`v`.`feature_id` = 1392) and (`cscartdb`.`v`.`product_id` in ('18825','57470','57471','57472','57473','57474','57475','57476','57477','57478','57479','57480','57481','57482','57483','57484','57485','57486','57487','57488','57489','57490','57491','57492','57493','57494','57495','57496','57497','57498','57499','57500','57501','57502','57503','57504','57505','57506','57507','57508','57509','57510','57511','57512','57513','57514','57515','57516','57517','57518','57519','57520','57521','57522','57523','57524','57525','57526','57527','57528','57529','57530','57531','57532','57533','57534','57535','57536','57537','57538','57539','57540','57541','57542','57543','57544','57545','57546','57547','57548','57549','57550','57551','57552','57553','57554','57555','57556','57557','57558')))"
}
},
{
"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": 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": [
"cscartdb.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 |
18825 |
Butterfly |
0 |
#ffffff |
5576 |
57470 |
Floral Pink |
10 |
#ffffff |
5577 |
57471 |
Mint |
11 |
#ffffff |
5578 |
57472 |
Petrol |
12 |
#ffffff |
5579 |
57473 |
White |
13 |
#ffffff |
5580 |
57474 |
Black |
14 |
#ffffff |
5581 |
57475 |
Pink |
15 |
#ffffff |
5582 |
57476 |
Coral |
16 |
#ffffff |
5583 |
57477 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
57478 |
Sheer Black |
1 |
#ffffff |
5568 |
57479 |
Blue Plum |
2 |
#ffffff |
5569 |
57480 |
Blue Stripes |
3 |
#ffffff |
5570 |
57481 |
Lavender Flowers |
4 |
#ffffff |
5571 |
57482 |
Spring Flowers |
5 |
#ffffff |
5572 |
57483 |
Floral Blush |
6 |
#ffffff |
5573 |
57484 |
Floral Mint |
7 |
#ffffff |
5574 |
57485 |
Floral Violet |
8 |
#ffffff |
5575 |
57486 |
Floral Beige |
9 |
#ffffff |
5566 |
57487 |
Butterfly |
0 |
#ffffff |
5576 |
57488 |
Floral Pink |
10 |
#ffffff |
5577 |
57489 |
Mint |
11 |
#ffffff |
5578 |
57490 |
Petrol |
12 |
#ffffff |
5579 |
57491 |
White |
13 |
#ffffff |
5580 |
57492 |
Black |
14 |
#ffffff |
5581 |
57493 |
Pink |
15 |
#ffffff |
5582 |
57494 |
Coral |
16 |
#ffffff |
5583 |
57495 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
57496 |
Sheer Black |
1 |
#ffffff |
5568 |
57497 |
Blue Plum |
2 |
#ffffff |
5569 |
57498 |
Blue Stripes |
3 |
#ffffff |
5570 |
57499 |
Lavender Flowers |
4 |
#ffffff |
5571 |
57500 |
Spring Flowers |
5 |
#ffffff |
5572 |
57501 |
Floral Blush |
6 |
#ffffff |
5573 |
57502 |
Floral Mint |
7 |
#ffffff |
5574 |
57503 |
Floral Violet |
8 |
#ffffff |
5575 |
57504 |
Floral Beige |
9 |
#ffffff |
5566 |
57505 |
Butterfly |
0 |
#ffffff |
5576 |
57506 |
Floral Pink |
10 |
#ffffff |
5577 |
57507 |
Mint |
11 |
#ffffff |
5578 |
57508 |
Petrol |
12 |
#ffffff |
5579 |
57509 |
White |
13 |
#ffffff |
5580 |
57510 |
Black |
14 |
#ffffff |
5581 |
57511 |
Pink |
15 |
#ffffff |
5582 |
57512 |
Coral |
16 |
#ffffff |
5583 |
57513 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
57514 |
Sheer Black |
1 |
#ffffff |
5568 |
57515 |
Blue Plum |
2 |
#ffffff |
5569 |
57516 |
Blue Stripes |
3 |
#ffffff |
5570 |
57517 |
Lavender Flowers |
4 |
#ffffff |
5571 |
57518 |
Spring Flowers |
5 |
#ffffff |
5572 |
57519 |
Floral Blush |
6 |
#ffffff |
5573 |
57520 |
Floral Mint |
7 |
#ffffff |
5574 |
57521 |
Floral Violet |
8 |
#ffffff |
5575 |
57522 |
Floral Beige |
9 |
#ffffff |
5566 |
57523 |
Butterfly |
0 |
#ffffff |
5576 |
57524 |
Floral Pink |
10 |
#ffffff |
5577 |
57525 |
Mint |
11 |
#ffffff |
5578 |
57526 |
Petrol |
12 |
#ffffff |
5579 |
57527 |
White |
13 |
#ffffff |
5580 |
57528 |
Black |
14 |
#ffffff |
5581 |
57529 |
Pink |
15 |
#ffffff |
5582 |
57530 |
Coral |
16 |
#ffffff |
5583 |
57531 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
57532 |
Sheer Black |
1 |
#ffffff |
5568 |
57533 |
Blue Plum |
2 |
#ffffff |
5569 |
57534 |
Blue Stripes |
3 |
#ffffff |
5570 |
57535 |
Lavender Flowers |
4 |
#ffffff |
5571 |
57536 |
Spring Flowers |
5 |
#ffffff |
5572 |
57537 |
Floral Blush |
6 |
#ffffff |
5573 |
57538 |
Floral Mint |
7 |
#ffffff |
5574 |
57539 |
Floral Violet |
8 |
#ffffff |
5575 |
57540 |
Floral Beige |
9 |
#ffffff |
5566 |
57541 |
Butterfly |
0 |
#ffffff |
5576 |
57542 |
Floral Pink |
10 |
#ffffff |
5577 |
57543 |
Mint |
11 |
#ffffff |
5578 |
57544 |
Petrol |
12 |
#ffffff |
5579 |
57545 |
White |
13 |
#ffffff |
5580 |
57546 |
Black |
14 |
#ffffff |
5581 |
57547 |
Pink |
15 |
#ffffff |
5582 |
57548 |
Coral |
16 |
#ffffff |
5583 |
57549 |
Spiral Aqua Blue |
17 |
#ffffff |
5567 |
57550 |
Sheer Black |
1 |
#ffffff |
5568 |
57551 |
Blue Plum |
2 |
#ffffff |
5569 |
57552 |
Blue Stripes |
3 |
#ffffff |
5570 |
57553 |
Lavender Flowers |
4 |
#ffffff |
5571 |
57554 |
Spring Flowers |
5 |
#ffffff |
5572 |
57555 |
Floral Blush |
6 |
#ffffff |
5573 |
57556 |
Floral Mint |
7 |
#ffffff |
5574 |
57557 |
Floral Violet |
8 |
#ffffff |
5575 |
57558 |
Floral Beige |
9 |
#ffffff |