Query time 0.00085
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": 17,
"filtered": 100,
"index_condition": "gp.group_id in (58,21,62)"
},
"table": {
"table_name": "gpf",
"access_type": "ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["herbaria_cscart_4_18.gp.group_id"],
"rows": 1,
"filtered": 100
},
"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": "6",
"used_key_parts": ["feature_id", "product_id"],
"ref": [
"herbaria_cscart_4_18.gpf.feature_id",
"herbaria_cscart_4_18.gp.product_id"
],
"rows": 1,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
57 |
514 |
6326 |
21 |
57 |
513 |
6325 |
21 |
57 |
512 |
6324 |
21 |
57 |
511 |
6322 |
21 |
57 |
104 |
6323 |
21 |
78 |
376 |
6967 |
58 |
78 |
1612 |
6968 |
58 |
78 |
1613 |
6969 |
58 |
78 |
1614 |
6970 |
58 |
78 |
1615 |
6971 |
58 |
78 |
1616 |
6972 |
58 |
78 |
1617 |
6973 |
58 |
78 |
1618 |
6974 |
58 |
78 |
5476 |
7165 |
58 |
81 |
390 |
6983 |
62 |
81 |
1628 |
6984 |
62 |