Query time 0.00363
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.25"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 40,
"rows_produced_per_join": 2,
"filtered": "6.76",
"index_condition": "(`cscartdb`.`pfv`.`product_id` in (20840,20730,20720,20748,20970,20760,14099,20712,20713,15481,16046,16055,17412,20954,20743,20765,16100,16036,16037,62954,20953,16098,16035,57917,57934,14136,14111,16045,57946,57947,14116,57916,21010))",
"cost_info": {
"read_cost": "25.99",
"eval_cost": "0.27",
"prefix_cost": "26.26",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`cscartdb`.`pfv`.`feature_id` in (1482,265,259,258,289,1207,288,287,1466,1461,266,271)) and (`cscartdb`.`pfv`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"feature_id"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"cscartdb.pfv.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.68",
"eval_cost": "0.01",
"prefix_cost": "27.21",
"data_read_per_join": "157"
},
"used_columns": [
"variant_id",
"feature_id",
"position"
],
"attached_condition": "(`cscartdb`.`fv`.`feature_id` = `cscartdb`.`pfv`.`feature_id`)"
}
},
{
"table": {
"table_name": "fvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscartdb.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.03",
"eval_cost": "0.01",
"prefix_cost": "27.25",
"data_read_per_join": "418"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
position |
variant |
265 |
14099 |
1145 |
1 |
Small: 27" - 36" waist |
271 |
14111 |
1173 |
1 |
Small: 28" - 38" |
266 |
14116 |
1153 |
1 |
Small |
266 |
14136 |
1153 |
1 |
Small |
259 |
15481 |
1137 |
0 |
Powdered |
258 |
15481 |
1134 |
0 |
Radical 0.25mm |
289 |
16035 |
1264 |
1 |
S |
289 |
16036 |
1264 |
1 |
S |
287 |
16037 |
1253 |
1 |
Small |
289 |
16045 |
1264 |
1 |
S |
289 |
16046 |
1264 |
1 |
S |
289 |
16055 |
1264 |
1 |
S |
289 |
16098 |
1264 |
1 |
S |
288 |
16100 |
1256 |
0 |
S |
1207 |
17412 |
4692 |
0 |
Strap on harness/XS |
1482 |
20712 |
5985 |
0 |
xs |
1482 |
20713 |
5985 |
0 |
xs |
1482 |
20720 |
5985 |
0 |
xs |
1482 |
20730 |
5985 |
0 |
xs |
1482 |
20743 |
5985 |
0 |
xs |
1482 |
20748 |
5985 |
0 |
xs |
1482 |
20760 |
5985 |
0 |
xs |
1482 |
20765 |
5985 |
0 |
xs |
1482 |
20840 |
5985 |
0 |
xs |
1482 |
20953 |
5985 |
0 |
xs |
1482 |
20954 |
5985 |
0 |
xs |
1482 |
20970 |
5985 |
0 |
xs |
1482 |
21010 |
5985 |
0 |
xs |
1466 |
57916 |
5884 |
0 |
Red |
1461 |
57916 |
5867 |
0 |
Silver |
1466 |
57917 |
5884 |
0 |
Red |
1461 |
57917 |
5867 |
0 |
Silver |
1466 |
57934 |
5884 |
0 |
Red |
1461 |
57934 |
5867 |
0 |
Silver |
1466 |
57946 |
5884 |
0 |
Red |
1461 |
57946 |
5867 |
0 |
Silver |
1466 |
57947 |
5884 |
0 |
Red |
1461 |
57947 |
5867 |
0 |
Silver |
1466 |
62954 |
5884 |
0 |
Red |
1461 |
62954 |
5867 |
0 |
Silver |