Query time 0.00998
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": 26,
"filtered": 100,
"index_condition": "gp.group_id in (12309,13377,13376,14653,13087,14602,16459,13449,14947,14601,14942)"
}
},
{
"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 |
19795 |
15493 |
68839 |
12309 |
19795 |
15492 |
68838 |
12309 |
19795 |
15491 |
68837 |
12309 |
19795 |
15490 |
68836 |
12309 |
19795 |
6068 |
68840 |
12309 |
20654 |
19367 |
72194 |
13087 |
20654 |
3374 |
72193 |
13087 |
20983 |
20936 |
73313 |
13376 |
20983 |
2564 |
73312 |
13376 |
20984 |
20937 |
73315 |
13377 |
20984 |
2563 |
73314 |
13377 |
21057 |
21084 |
73527 |
13449 |
21057 |
2458 |
73526 |
13449 |
22333 |
405 |
78278 |
14601 |
22333 |
25728 |
78277 |
14601 |
22334 |
25730 |
78280 |
14602 |
22334 |
404 |
78281 |
14602 |
22387 |
330 |
78483 |
14653 |
22387 |
25894 |
78484 |
14653 |
22826 |
26864 |
79632 |
14942 |
22826 |
27048 |
79633 |
14942 |
22826 |
27049 |
79634 |
14942 |
22826 |
27050 |
79635 |
14942 |
22831 |
26854 |
79644 |
14947 |
22831 |
27055 |
79645 |
14947 |
24203 |
41250 |
84336 |
16459 |
24203 |
41229 |
84335 |
16459 |