Query time 0.00604
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": 18,
"filtered": 100,
"index_condition": "gp.group_id in (16320,16512,16455,16453,16073)"
}
},
{
"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 |
23891 |
38111 |
83134 |
16073 |
23891 |
38282 |
83135 |
16073 |
23891 |
38283 |
83136 |
16073 |
23891 |
38284 |
83137 |
16073 |
23891 |
38285 |
83138 |
16073 |
23891 |
38286 |
83139 |
16073 |
23891 |
38287 |
83140 |
16073 |
24103 |
40603 |
83993 |
16320 |
24103 |
40493 |
83992 |
16320 |
24198 |
41194 |
84316 |
16453 |
24198 |
41223 |
84317 |
16453 |
24200 |
41193 |
84322 |
16455 |
24200 |
41227 |
84323 |
16455 |
24200 |
41228 |
84324 |
16455 |
24260 |
41773 |
84548 |
16512 |
24260 |
41778 |
84549 |
16512 |