Query time 0.00425
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"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": 22,
"filtered": 100,
"index_condition": "gp.group_id in (13976,13979,13975,13974,13977,13980)"
}
},
{
"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": ["dev_db.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": "idx_product_feature_variant_id",
"key_length": "12",
"used_key_parts": ["product_id", "feature_id", "lang_code"],
"ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'vi'",
"using_index": true
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
21646 |
1436 |
75701 |
13974 |
21646 |
23204 |
75697 |
13974 |
21646 |
23205 |
75698 |
13974 |
21646 |
23206 |
75699 |
13974 |
21646 |
23207 |
75700 |
13974 |
21647 |
1435 |
75705 |
13975 |
21647 |
23208 |
75702 |
13975 |
21647 |
23209 |
75703 |
13975 |
21647 |
23210 |
75704 |
13975 |
21648 |
1434 |
75712 |
13976 |
21648 |
23211 |
75706 |
13976 |
21648 |
23212 |
75707 |
13976 |
21648 |
23213 |
75708 |
13976 |
21648 |
23214 |
75709 |
13976 |
21648 |
23215 |
75710 |
13976 |
21648 |
23216 |
75711 |
13976 |
21649 |
1433 |
75715 |
13977 |
21649 |
23217 |
75713 |
13977 |
21649 |
23218 |
75714 |
13977 |
21651 |
1431 |
75719 |
13979 |
21651 |
23221 |
75721 |
13979 |
21651 |
23222 |
75720 |
13979 |
21653 |
1430 |
75724 |
13980 |
21653 |
23227 |
75724 |
13980 |
21653 |
23228 |
75725 |
13980 |