Query time 0.00134
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": 24,
"filtered": 100,
"attached_condition": "pfv.feature_id in (9,7) and pfv.product_id in (145,277,139,282,179,280,148,144,143,141,111,147) and pfv.lang_code = 'ja'",
"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 = 'ja'"
}
}
}
Result
feature_id |
product_id |
variant_id |
position |
variant |
7 |
111 |
18 |
10 |
S |
9 |
111 |
29 |
10 |
白 |
7 |
139 |
18 |
10 |
S |
7 |
141 |
18 |
10 |
S |
7 |
143 |
18 |
10 |
S |
9 |
143 |
38 |
30 |
ヘザーブラック |
7 |
144 |
18 |
10 |
S |
9 |
144 |
30 |
20 |
黒 |
7 |
145 |
18 |
10 |
S |
9 |
145 |
37 |
100 |
アイビーグリーン |
7 |
147 |
18 |
10 |
S |
7 |
148 |
18 |
10 |
S |
9 |
148 |
32 |
50 |
ダークブルー |
7 |
179 |
19 |
20 |
M |
7 |
277 |
19 |
20 |
M |
7 |
280 |
20 |
30 |
L |
7 |
282 |
20 |
30 |
L |