Query time 0.00145
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": 17,
"filtered": 100,
"index_condition": "gp.group_id in (15889,13426,13421,12956,13422,13419)"
}
},
{
"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 |
20512 |
18905 |
71737 |
12956 |
20512 |
3712 |
71738 |
12956 |
21027 |
21046 |
73458 |
13419 |
21027 |
21045 |
73457 |
13419 |
21027 |
21044 |
73456 |
13419 |
21027 |
21043 |
73459 |
13419 |
21027 |
2499 |
73455 |
13419 |
21029 |
21056 |
73471 |
13421 |
21029 |
2497 |
73470 |
13421 |
21030 |
21057 |
73473 |
13422 |
21030 |
2496 |
73472 |
13422 |
21034 |
21061 |
73481 |
13426 |
21034 |
2492 |
73480 |
13426 |
23770 |
37099 |
82557 |
15889 |
23769 |
37099 |
82554 |
15889 |
23770 |
37100 |
82558 |
15889 |
23769 |
37100 |
82554 |
15889 |
23770 |
37101 |
82557 |
15889 |
23769 |
37101 |
82555 |
15889 |
23770 |
37102 |
82558 |
15889 |
23769 |
37102 |
82555 |
15889 |
23770 |
37104 |
82558 |
15889 |
23769 |
37104 |
82556 |
15889 |
23770 |
37103 |
82557 |
15889 |
23769 |
37103 |
82556 |
15889 |