Query time 0.00292
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": 33,
"filtered": 100,
"index_condition": "gp.group_id in (16432,16419,16427,16436,16443,16433)"
}
},
{
"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 |
24191 |
37885 |
84291 |
16419 |
24191 |
41096 |
84292 |
16419 |
24191 |
41097 |
84293 |
16419 |
24191 |
42337 |
84766 |
16419 |
24191 |
41113 |
84293 |
16427 |
24191 |
42342 |
84766 |
16427 |
24191 |
41112 |
84292 |
16427 |
24191 |
42351 |
84766 |
16432 |
24191 |
41123 |
84293 |
16432 |
24191 |
41122 |
84292 |
16432 |
24191 |
37886 |
84291 |
16433 |
24191 |
42359 |
84766 |
16433 |
24191 |
41124 |
84292 |
16433 |
24191 |
41125 |
84293 |
16433 |
24191 |
42361 |
84766 |
16436 |
24191 |
37904 |
84291 |
16436 |
24191 |
41130 |
84292 |
16436 |
24191 |
41131 |
84293 |
16436 |
24191 |
37881 |
84291 |
16443 |
24191 |
42358 |
84766 |
16443 |
24191 |
41144 |
84292 |
16443 |
24191 |
41145 |
84293 |
16443 |