Query time 0.00408
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": 15,
"filtered": 100,
"index_condition": "gp.group_id in (15578,15710,15711,14914)"
}
},
{
"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 |
22695 |
27173 |
79429 |
14914 |
22695 |
27172 |
79428 |
14914 |
22695 |
861 |
79427 |
14914 |
22695 |
27175 |
79431 |
14914 |
22695 |
27174 |
79430 |
14914 |
23451 |
859 |
81357 |
15578 |
23451 |
33530 |
81362 |
15578 |
23451 |
33529 |
81361 |
15578 |
23451 |
33528 |
81360 |
15578 |
23451 |
33527 |
81359 |
15578 |
23451 |
33526 |
81358 |
15578 |
23580 |
862 |
81799 |
15710 |
23581 |
862 |
81801 |
15710 |
23580 |
35372 |
81799 |
15710 |
23581 |
35372 |
81802 |
15710 |
23580 |
35374 |
81800 |
15710 |
23581 |
35374 |
81802 |
15710 |
23580 |
35373 |
81800 |
15710 |
23581 |
35373 |
81801 |
15710 |
23582 |
860 |
81803 |
15711 |
23583 |
860 |
81805 |
15711 |
23582 |
35375 |
81803 |
15711 |
23583 |
35375 |
81806 |
15711 |
23582 |
35376 |
81804 |
15711 |
23583 |
35376 |
81805 |
15711 |
23582 |
35377 |
81804 |
15711 |
23583 |
35377 |
81806 |
15711 |