Query time 0.00122
JSON explain
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"key_length": "12",
"used_key_parts": ["product_id", "feature_id", "lang_code"],
"rows": 22,
"filtered": 100,
"attached_condition": "pfv.feature_id in (9,7) and pfv.product_id in (213,150,216,149,258,146,233,193,225,129,131) and pfv.lang_code = 'en'",
"using_index": true
},
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "feature_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["cscart_purchase_fl_com.pfv.variant_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "fv.feature_id = pfv.feature_id"
},
"table": {
"table_name": "fvd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["cscart_purchase_fl_com.pfv.variant_id", "const"],
"rows": 1,
"filtered": 100,
"index_condition": "fvd.lang_code = 'en'"
}
}
}
Result
feature_id |
product_id |
variant_id |
position |
variant |
7 |
129 |
18 |
10 |
S |
7 |
131 |
18 |
10 |
S |
7 |
146 |
18 |
10 |
S |
7 |
149 |
18 |
10 |
S |
7 |
150 |
18 |
10 |
S |
9 |
150 |
36 |
90 |
ミックスグレー |
7 |
193 |
19 |
20 |
M |
7 |
213 |
18 |
10 |
S |
9 |
213 |
34 |
60 |
サックスブルー |
7 |
216 |
18 |
10 |
S |
9 |
216 |
36 |
90 |
ミックスグレー |
7 |
225 |
20 |
30 |
L |
7 |
233 |
19 |
20 |
M |
7 |
258 |
19 |
20 |
M |
9 |
258 |
40 |
110 |
アプリコット |