Query time 0.00668
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": 25,
"filtered": 100,
"index_condition": "gp.group_id in (14762,14804,14806,12213,13950)"
}
},
{
"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 |
19685 |
14986 |
68439 |
12213 |
19685 |
14985 |
68438 |
12213 |
19685 |
6462 |
68440 |
12213 |
21622 |
1495 |
75621 |
13950 |
21622 |
23146 |
75615 |
13950 |
21622 |
23147 |
75616 |
13950 |
21622 |
23148 |
75617 |
13950 |
21622 |
23149 |
75618 |
13950 |
21622 |
23150 |
75619 |
13950 |
21622 |
23151 |
75620 |
13950 |
22509 |
147 |
79011 |
14762 |
22509 |
26475 |
79005 |
14762 |
22509 |
26476 |
79006 |
14762 |
22509 |
26477 |
79007 |
14762 |
22509 |
26478 |
79008 |
14762 |
22509 |
26479 |
79009 |
14762 |
22509 |
26480 |
79010 |
14762 |
22551 |
60 |
79179 |
14804 |
22551 |
26603 |
79175 |
14804 |
22551 |
26604 |
79176 |
14804 |
22551 |
26605 |
79177 |
14804 |
22551 |
26606 |
79178 |
14804 |
22553 |
58 |
79188 |
14806 |
22553 |
26608 |
79182 |
14806 |
22553 |
26609 |
79183 |
14806 |
22553 |
26610 |
79184 |
14806 |
22553 |
26611 |
79185 |
14806 |
22553 |
26612 |
79186 |
14806 |
22553 |
26613 |
79187 |
14806 |