Query time 0.00127
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.27"
},
"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": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.67",
"eval_cost": "2.20",
"prefix_cost": "4.87",
"data_read_per_join": "17K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id"
],
"attached_condition": "((`cscartdb`.`v`.`feature_id` = 1207) and (`cscartdb`.`v`.`product_id` in ('36307','36306','36305','36304','36303','36302','17412','36316','36315','36314','36313','36312','36311','36310','36309','36308','36319','36318','36317','36320','36321')))"
}
},
{
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.50",
"eval_cost": "2.20",
"prefix_cost": "12.57",
"data_read_per_join": "66K"
},
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.50",
"eval_cost": "2.20",
"prefix_cost": "20.27",
"data_read_per_join": "25K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
}
]
}
}
Result
variant_id |
product_id |
variant |
position |
color |
4692 |
17412 |
Strap on harness/XS |
0 |
#000000 |
4693 |
36302 |
Strap on harness/S |
1 |
#000000 |
4694 |
36303 |
Strap on harness/M |
2 |
#000000 |
4695 |
36304 |
Strap on harness/L |
3 |
#000000 |
4696 |
36305 |
Strap on harness/XL |
4 |
#000000 |
4697 |
36306 |
Strap on harness/2XL |
5 |
#000000 |
4698 |
36307 |
Strap on harness/3XL |
6 |
#000000 |
4699 |
36308 |
Chest harness/XS |
7 |
#000000 |
4700 |
36309 |
Chest harness/S |
8 |
#000000 |
4701 |
36310 |
Chest harness/M |
9 |
#000000 |
4702 |
36311 |
Chest harness/L |
10 |
#000000 |
4703 |
36312 |
Chest harness/XL |
11 |
#000000 |
4704 |
36313 |
Chest harness/2XL |
12 |
#000000 |
4705 |
36314 |
Chest harness/3XL |
13 |
#000000 |
4706 |
36315 |
Full set/XS |
14 |
#000000 |
4707 |
36316 |
Full set/S |
15 |
#000000 |
4708 |
36317 |
Full set/M |
16 |
#000000 |
4709 |
36318 |
Full set/L |
17 |
#000000 |
4710 |
36319 |
Full set/XL |
18 |
#000000 |
4711 |
36320 |
Full set/2XL |
19 |
#000000 |
4712 |
36321 |
Full set/3XL |
20 |
#000000 |