Query time 0.00335
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": 10,
"filtered": 100,
"index_condition": "gp.group_id in (12291,12289,14841,14622)"
}
},
{
"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 |
19774 |
15453 |
68778 |
12289 |
19774 |
15452 |
68777 |
12289 |
19774 |
6195 |
68779 |
12289 |
19777 |
15457 |
68786 |
12291 |
19777 |
6192 |
68785 |
12291 |
22354 |
25785 |
78355 |
14622 |
22354 |
25784 |
78356 |
14622 |
22354 |
25783 |
78353 |
14622 |
22354 |
371 |
78354 |
14622 |
22626 |
6193 |
79251 |
14841 |
22626 |
27262 |
79252 |
14841 |