Query time 0.00417
JSON explain
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "gpf",
"access_type": "index",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["feature_id", "group_id"],
"rows": 46,
"filtered": 100,
"using_index": true
},
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["cscart_purchase_fl_com.gpf.feature_id"],
"rows": 3,
"filtered": 58.7939682,
"attached_condition": "pfv.lang_code = 'ja'",
"using_index": true
},
"table": {
"table_name": "gp",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["product_id", "group_id"],
"ref": [
"cscart_purchase_fl_com.pfv.product_id",
"cscart_purchase_fl_com.gpf.group_id"
],
"rows": 1,
"filtered": 100,
"attached_condition": "gp.group_id in (49,25,19,32)",
"using_index": true
}
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
7 |
136 |
18 |
19 |
7 |
179 |
19 |
19 |
7 |
180 |
20 |
19 |
7 |
139 |
18 |
25 |
7 |
191 |
19 |
25 |
7 |
192 |
20 |
25 |
7 |
111 |
18 |
32 |
7 |
211 |
19 |
32 |
7 |
212 |
20 |
32 |
7 |
213 |
18 |
32 |
7 |
214 |
19 |
32 |
7 |
215 |
20 |
32 |
7 |
216 |
18 |
32 |
7 |
217 |
19 |
32 |
7 |
218 |
20 |
32 |
7 |
133 |
18 |
49 |
7 |
277 |
19 |
49 |
7 |
278 |
20 |
49 |
9 |
111 |
29 |
32 |
9 |
211 |
29 |
32 |
9 |
212 |
29 |
32 |
9 |
213 |
34 |
32 |
9 |
214 |
34 |
32 |
9 |
215 |
34 |
32 |
9 |
216 |
36 |
32 |
9 |
217 |
36 |
32 |
9 |
218 |
36 |
32 |