Query time 0.00205
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": 33,
"filtered": 100,
"index_condition": "gp.group_id in (13348,13981,12323,12328,14070,13334)"
}
},
{
"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 |
19813 |
15612 |
68903 |
12323 |
19813 |
15611 |
68902 |
12323 |
19813 |
15610 |
68901 |
12323 |
19813 |
6050 |
68904 |
12323 |
19818 |
15634 |
68930 |
12328 |
19818 |
15633 |
68929 |
12328 |
19818 |
15632 |
68928 |
12328 |
19818 |
15631 |
68927 |
12328 |
19818 |
15630 |
68926 |
12328 |
19818 |
15629 |
68925 |
12328 |
19818 |
15628 |
68924 |
12328 |
19818 |
15627 |
68923 |
12328 |
19818 |
15626 |
68922 |
12328 |
19818 |
6043 |
68931 |
12328 |
20941 |
20806 |
73140 |
13334 |
20941 |
20805 |
73139 |
13334 |
20941 |
20804 |
73138 |
13334 |
20941 |
2638 |
73141 |
13334 |
20955 |
20871 |
73219 |
13348 |
20955 |
20870 |
73218 |
13348 |
20955 |
20869 |
73217 |
13348 |
20955 |
20868 |
73216 |
13348 |
20955 |
20867 |
73215 |
13348 |
20955 |
20866 |
73214 |
13348 |
20955 |
20865 |
73213 |
13348 |
20955 |
20864 |
73212 |
13348 |
20955 |
2621 |
73220 |
13348 |
21655 |
1429 |
75729 |
13981 |
21655 |
23233 |
75736 |
13981 |
21655 |
23234 |
75730 |
13981 |
21655 |
23235 |
75731 |
13981 |
21655 |
23236 |
75732 |
13981 |
21655 |
23237 |
75733 |
13981 |
21655 |
23238 |
75734 |
13981 |
21655 |
23239 |
75735 |
13981 |
21749 |
23484 |
76049 |
14070 |
21749 |
23483 |
76048 |
14070 |
21749 |
23482 |
76047 |
14070 |
21749 |
1286 |
76050 |
14070 |