Query time 0.01464
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": 34,
"filtered": 100,
"index_condition": "gp.group_id in (17087,17326,17335,17363,17362)"
}
},
{
"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 |
24836 |
47652 |
86606 |
17087 |
24836 |
47685 |
86607 |
17087 |
24836 |
47686 |
86608 |
17087 |
25022 |
50045 |
87281 |
17326 |
25110 |
50045 |
87658 |
17326 |
25022 |
50062 |
87282 |
17326 |
25110 |
50062 |
87660 |
17326 |
25022 |
50061 |
87282 |
17326 |
25110 |
50061 |
87659 |
17326 |
25022 |
50060 |
87282 |
17326 |
25110 |
50060 |
87658 |
17326 |
25022 |
50059 |
87281 |
17326 |
25110 |
50059 |
87660 |
17326 |
25022 |
50058 |
87281 |
17326 |
25110 |
50058 |
87659 |
17326 |
25022 |
50163 |
87281 |
17335 |
25100 |
50163 |
87628 |
17335 |
25022 |
50164 |
87281 |
17335 |
25100 |
50164 |
87627 |
17335 |
25022 |
50165 |
87281 |
17335 |
25100 |
50165 |
87629 |
17335 |
25022 |
50166 |
87281 |
17335 |
25100 |
50166 |
87630 |
17335 |
25022 |
50167 |
87282 |
17335 |
25100 |
50167 |
87627 |
17335 |
25022 |
50168 |
87282 |
17335 |
25100 |
50168 |
87628 |
17335 |
25022 |
50169 |
87282 |
17335 |
25100 |
50169 |
87629 |
17335 |
25022 |
50170 |
87282 |
17335 |
25100 |
50170 |
87630 |
17335 |
25142 |
50343 |
87766 |
17362 |
25142 |
50342 |
87765 |
17362 |
25142 |
50341 |
87764 |
17362 |
25142 |
50344 |
87767 |
17362 |
25143 |
50346 |
87769 |
17363 |
25143 |
50345 |
87768 |
17363 |