Query time 0.00479
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": 11,
"filtered": 100,
"index_condition": "gp.group_id in (14147,14152,14146,14165)"
}
},
{
"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 |
21829 |
1175 |
76386 |
14146 |
21830 |
1174 |
76388 |
14147 |
21830 |
23747 |
76387 |
14147 |
21835 |
23759 |
76404 |
14152 |
21858 |
1154 |
76492 |
14165 |
21858 |
23899 |
76492 |
14165 |
21858 |
23900 |
76493 |
14165 |
21858 |
23901 |
76494 |
14165 |
21858 |
23902 |
76495 |
14165 |
21858 |
23903 |
76496 |
14165 |
21858 |
23904 |
76497 |
14165 |
21858 |
23910 |
76498 |
14165 |