Query time 0.00264
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": 14,
"filtered": 100,
"index_condition": "gp.group_id in (14381,12484,14386,12482,12487)"
}
},
{
"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 |
19980 |
16528 |
69833 |
12482 |
19980 |
16527 |
69832 |
12482 |
19980 |
5600 |
69834 |
12482 |
19982 |
16530 |
69837 |
12484 |
19982 |
5598 |
69838 |
12484 |
19985 |
16538 |
69848 |
12487 |
19985 |
16537 |
69847 |
12487 |
19985 |
5595 |
69849 |
12487 |
22098 |
763 |
77363 |
14381 |
22098 |
24706 |
77359 |
14381 |
22098 |
24707 |
77360 |
14381 |
22098 |
24708 |
77361 |
14381 |
22098 |
24709 |
77362 |
14381 |
22103 |
754 |
77375 |
14386 |
22103 |
24716 |
77374 |
14386 |