Query time 0.00178
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "51.21"
},
"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": 56,
"rows_produced_per_join": 56,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "6.41",
"eval_cost": "5.60",
"prefix_cost": "12.01",
"data_read_per_join": "43K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id"
],
"attached_condition": "((`cscartdb`.`v`.`feature_id` = 1374) and (`cscartdb`.`v`.`product_id` in ('55536','55535','55534','55533','55532','55531','55530','55529','55528','55527','55526','55525','55524','55523','55522','55521','55520','55295','55537','55538','55539','55540','55541','55542','55543','55544','55545','55546','55547','55548','55549','55550','55551','55552','55553','55554','55555','55556','55557','55558','55559','55560','55561','55562','55563','55564','55565','55566','55567','55568','55569','55570','55571','55572')))"
}
},
{
"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": 56,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.00",
"eval_cost": "5.60",
"prefix_cost": "31.61",
"data_read_per_join": "169K"
},
"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": 56,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.00",
"eval_cost": "5.60",
"prefix_cost": "51.21",
"data_read_per_join": "63K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
}
]
}
}
Result
variant_id |
product_id |
variant |
position |
color |
5511 |
55295 |
Nickle-Plate |
0 |
#000000 |
5511 |
55520 |
Nickle-Plate |
0 |
#000000 |
5511 |
55521 |
Nickle-Plate |
0 |
#000000 |
5511 |
55522 |
Nickle-Plate |
0 |
#000000 |
5511 |
55523 |
Nickle-Plate |
0 |
#000000 |
5511 |
55524 |
Nickle-Plate |
0 |
#000000 |
5511 |
55525 |
Nickle-Plate |
0 |
#000000 |
5511 |
55526 |
Nickle-Plate |
0 |
#000000 |
5511 |
55527 |
Nickle-Plate |
0 |
#000000 |
5511 |
55528 |
Nickle-Plate |
0 |
#000000 |
5511 |
55529 |
Nickle-Plate |
0 |
#000000 |
5511 |
55530 |
Nickle-Plate |
0 |
#000000 |
5511 |
55531 |
Nickle-Plate |
0 |
#000000 |
5511 |
55532 |
Nickle-Plate |
0 |
#000000 |
5511 |
55533 |
Nickle-Plate |
0 |
#000000 |
5511 |
55534 |
Nickle-Plate |
0 |
#000000 |
5511 |
55535 |
Nickle-Plate |
0 |
#000000 |
5511 |
55536 |
Nickle-Plate |
0 |
#000000 |
5510 |
55537 |
Brass |
1 |
#000000 |
5510 |
55538 |
Brass |
1 |
#000000 |
5510 |
55539 |
Brass |
1 |
#000000 |
5510 |
55540 |
Brass |
1 |
#000000 |
5510 |
55541 |
Brass |
1 |
#000000 |
5510 |
55542 |
Brass |
1 |
#000000 |
5510 |
55543 |
Brass |
1 |
#000000 |
5510 |
55544 |
Brass |
1 |
#000000 |
5510 |
55545 |
Brass |
1 |
#000000 |
5510 |
55546 |
Brass |
1 |
#000000 |
5510 |
55547 |
Brass |
1 |
#000000 |
5510 |
55548 |
Brass |
1 |
#000000 |
5510 |
55549 |
Brass |
1 |
#000000 |
5510 |
55550 |
Brass |
1 |
#000000 |
5510 |
55551 |
Brass |
1 |
#000000 |
5510 |
55552 |
Brass |
1 |
#000000 |
5510 |
55553 |
Brass |
1 |
#000000 |
5510 |
55554 |
Brass |
1 |
#000000 |
5512 |
55555 |
Antique Brass |
1 |
#000000 |
5512 |
55556 |
Antique Brass |
1 |
#000000 |
5512 |
55557 |
Antique Brass |
1 |
#000000 |
5512 |
55558 |
Antique Brass |
1 |
#000000 |
5512 |
55559 |
Antique Brass |
1 |
#000000 |
5512 |
55560 |
Antique Brass |
1 |
#000000 |
5512 |
55561 |
Antique Brass |
1 |
#000000 |
5512 |
55562 |
Antique Brass |
1 |
#000000 |
5512 |
55563 |
Antique Brass |
1 |
#000000 |
5512 |
55564 |
Antique Brass |
1 |
#000000 |
5512 |
55565 |
Antique Brass |
1 |
#000000 |
5512 |
55566 |
Antique Brass |
1 |
#000000 |
5512 |
55567 |
Antique Brass |
1 |
#000000 |
5512 |
55568 |
Antique Brass |
1 |
#000000 |
5512 |
55569 |
Antique Brass |
1 |
#000000 |
5512 |
55570 |
Antique Brass |
1 |
#000000 |
5512 |
55571 |
Antique Brass |
1 |
#000000 |
5512 |
55572 |
Antique Brass |
1 |
#000000 |