Query time 0.00754
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": 151,
"filtered": 100,
"index_condition": "gp.group_id in (17408,12308,17406,17405,17353,17377,17363,17376,17398,17362,17397,17401,17402,17349,17364,17395,17396,17358)"
}
},
{
"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 |
19794 |
50680 |
68829 |
12308 |
19794 |
50681 |
68830 |
12308 |
19794 |
50682 |
68831 |
12308 |
19794 |
50683 |
68832 |
12308 |
19794 |
50684 |
68833 |
12308 |
19794 |
50685 |
68834 |
12308 |
19794 |
6069 |
68835 |
12308 |
25129 |
50244 |
87717 |
17349 |
25129 |
50245 |
87718 |
17349 |
25129 |
50246 |
87719 |
17349 |
19586 |
50270 |
87732 |
17353 |
19586 |
50269 |
87731 |
17353 |
19586 |
50268 |
87730 |
17353 |
19586 |
50267 |
68137 |
17353 |
19586 |
50266 |
68136 |
17353 |
19586 |
50265 |
68135 |
17353 |
19586 |
50264 |
68134 |
17353 |
25138 |
50313 |
87756 |
17358 |
25138 |
50326 |
87757 |
17358 |
25142 |
50343 |
87766 |
17362 |
25142 |
50342 |
87765 |
17362 |
25142 |
50341 |
87764 |
17362 |
25142 |
50344 |
87767 |
17362 |
25143 |
50346 |
87769 |
17363 |
25143 |
50345 |
87768 |
17363 |
25144 |
50351 |
87772 |
17364 |
25144 |
50350 |
87771 |
17364 |
25144 |
50347 |
87770 |
17364 |
25158 |
50519 |
87798 |
17376 |
25158 |
50518 |
87797 |
17376 |
25158 |
50517 |
87796 |
17376 |
25161 |
50524 |
87803 |
17377 |
25161 |
50667 |
87804 |
17377 |
25174 |
50621 |
87851 |
17395 |
25174 |
50622 |
87852 |
17395 |
25174 |
50602 |
87856 |
17395 |
25176 |
50626 |
87858 |
17396 |
25176 |
50603 |
87857 |
17396 |
25177 |
50640 |
87860 |
17397 |
25177 |
50641 |
87861 |
17397 |
25177 |
50605 |
87859 |
17397 |
25178 |
50645 |
87875 |
17398 |
25178 |
50612 |
87865 |
17398 |
25177 |
50652 |
87877 |
17401 |
25177 |
50650 |
87876 |
17401 |
25178 |
50653 |
87868 |
17402 |
25178 |
50630 |
87867 |
17402 |
25183 |
50675 |
87888 |
17405 |
25183 |
50673 |
87886 |
17405 |
25183 |
50674 |
87887 |
17405 |
25184 |
50678 |
87891 |
17406 |
25184 |
50676 |
87889 |
17406 |
25184 |
50677 |
87890 |
17406 |
25186 |
31318 |
87894 |
17408 |
25186 |
50698 |
87895 |
17408 |
25186 |
50699 |
87896 |
17408 |