Query time 0.01506
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": 51,
"filtered": 100,
"index_condition": "gp.group_id in (13673,13154,13658,15478,15716,14518,15713,15074,13452,13671,13674,13304,15490,17010,17008,13462,13804)"
}
},
{
"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 |
20724 |
19590 |
72400 |
13154 |
20724 |
3192 |
72399 |
13154 |
20903 |
20735 |
73043 |
13304 |
20903 |
2781 |
73044 |
13304 |
21060 |
21087 |
73533 |
13452 |
21060 |
2455 |
73532 |
13452 |
21070 |
21113 |
73569 |
13462 |
21070 |
2445 |
73568 |
13462 |
21289 |
22066 |
74492 |
13658 |
21289 |
22065 |
74493 |
13658 |
21289 |
2017 |
74491 |
13658 |
21302 |
22092 |
74531 |
13671 |
21302 |
22091 |
74532 |
13671 |
21302 |
2004 |
74530 |
13671 |
21304 |
22096 |
74537 |
13673 |
21304 |
22095 |
74538 |
13673 |
21304 |
2002 |
74536 |
13673 |
21305 |
22098 |
74540 |
13674 |
21305 |
22097 |
74541 |
13674 |
21305 |
2001 |
74539 |
13674 |
21450 |
22633 |
75065 |
13804 |
21450 |
22632 |
75064 |
13804 |
21450 |
22631 |
75063 |
13804 |
21450 |
22630 |
75062 |
13804 |
21450 |
1811 |
75066 |
13804 |
22238 |
541 |
77921 |
14518 |
22238 |
25163 |
77919 |
14518 |
22238 |
25164 |
77920 |
14518 |
22929 |
28268 |
79947 |
15074 |
22929 |
28267 |
79946 |
15074 |
22929 |
28266 |
79945 |
15074 |
22929 |
28265 |
79944 |
15074 |
22929 |
28168 |
79943 |
15074 |
23350 |
32633 |
81003 |
15478 |
23350 |
27015 |
81002 |
15478 |
23350 |
32634 |
81004 |
15478 |
23350 |
32635 |
81005 |
15478 |
23350 |
32636 |
81006 |
15478 |
23350 |
32637 |
81007 |
15478 |
23350 |
27854 |
81002 |
15490 |
23350 |
32747 |
81003 |
15490 |
23350 |
32748 |
81004 |
15490 |
23350 |
32749 |
81005 |
15490 |
23350 |
32750 |
81006 |
15490 |
23350 |
32751 |
81007 |
15490 |
23585 |
35481 |
81809 |
15713 |
23585 |
35537 |
81810 |
15713 |
23588 |
35484 |
81815 |
15716 |
23588 |
35540 |
81816 |
15716 |
24759 |
47172 |
86337 |
17008 |
24759 |
3658 |
86336 |
17008 |
24759 |
47174 |
86336 |
17010 |
24759 |
3661 |
86337 |
17010 |