Query time 0.00155
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": 17,
"filtered": 100,
"index_condition": "gp.group_id in (14608,14610,14612,14609,14611,14569)"
}
},
{
"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 |
22295 |
469 |
78136 |
14569 |
22295 |
25543 |
78135 |
14569 |
22295 |
25544 |
78137 |
14569 |
22340 |
25741 |
78297 |
14608 |
22340 |
25740 |
78296 |
14608 |
22340 |
25739 |
78295 |
14608 |
22340 |
396 |
78298 |
14608 |
22341 |
25743 |
78300 |
14609 |
22341 |
394 |
78301 |
14609 |
22341 |
25742 |
78299 |
14609 |
22342 |
25744 |
78303 |
14610 |
22342 |
393 |
78302 |
14610 |
22343 |
25747 |
78307 |
14611 |
22343 |
25746 |
78305 |
14611 |
22343 |
25745 |
78304 |
14611 |
22343 |
392 |
78306 |
14611 |
22344 |
25749 |
78309 |
14612 |
22344 |
25748 |
78310 |
14612 |
22344 |
391 |
78308 |
14612 |