Query time 0.01283
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": 39,
"filtered": 100,
"index_condition": "gp.group_id in (17247,15659,15661,13928,16489,16984,15486,17225,17306,15465)"
}
},
{
"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 |
21596 |
23030 |
75520 |
13928 |
21596 |
1535 |
75519 |
13928 |
23350 |
32558 |
81005 |
15465 |
23350 |
26880 |
81002 |
15465 |
23350 |
32557 |
81004 |
15465 |
23350 |
32556 |
81003 |
15465 |
23350 |
32559 |
81006 |
15465 |
23350 |
32560 |
81007 |
15465 |
23350 |
26892 |
81002 |
15486 |
23350 |
32721 |
81003 |
15486 |
23350 |
32722 |
81004 |
15486 |
23350 |
32723 |
81005 |
15486 |
23350 |
32724 |
81006 |
15486 |
23350 |
32725 |
81007 |
15486 |
23526 |
35166 |
81655 |
15659 |
23526 |
35233 |
81656 |
15659 |
23528 |
35169 |
81660 |
15661 |
23528 |
35236 |
81661 |
15661 |
23528 |
35237 |
81662 |
15661 |
24231 |
41429 |
84426 |
16489 |
24231 |
41478 |
84427 |
16489 |
24231 |
41479 |
84428 |
16489 |
24231 |
41480 |
84429 |
16489 |
24744 |
47103 |
86299 |
16984 |
24744 |
47102 |
86298 |
16984 |
24744 |
47012 |
86297 |
16984 |
24980 |
48998 |
87124 |
17225 |
24980 |
48999 |
87125 |
17225 |
20545 |
3638 |
71871 |
17247 |
20545 |
49192 |
71868 |
17247 |
20545 |
49194 |
71870 |
17247 |
20545 |
49193 |
71869 |
17247 |
25065 |
49808 |
87458 |
17306 |
25065 |
41291 |
87457 |
17306 |