Query time 0.00052
JSON explain
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"rows": 12,
"filtered": 100,
"index_condition": "gp.group_id in (54,49,25,51)"
},
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart_purchase_fl_com.gp.product_id"],
"rows": 11,
"filtered": 58.7939682,
"attached_condition": "pfv.lang_code = 'ja'",
"using_index": true
},
"table": {
"table_name": "gpf",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["feature_id", "group_id"],
"ref": [
"cscart_purchase_fl_com.pfv.feature_id",
"cscart_purchase_fl_com.gp.group_id"
],
"rows": 1,
"filtered": 100,
"using_index": true
}
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
7 |
139 |
18 |
25 |
7 |
191 |
19 |
25 |
7 |
192 |
20 |
25 |
7 |
133 |
18 |
49 |
7 |
277 |
19 |
49 |
7 |
278 |
20 |
49 |
7 |
113 |
18 |
51 |
7 |
281 |
19 |
51 |
7 |
282 |
20 |
51 |
7 |
145 |
18 |
54 |
9 |
145 |
37 |
54 |
7 |
287 |
19 |
54 |
9 |
287 |
37 |
54 |
7 |
288 |
20 |
54 |
9 |
288 |
37 |
54 |