Query time 0.00599
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": 19,
"filtered": 100,
"index_condition": "gp.group_id in (13744,13747,13746,13951,13952,14217)"
}
},
{
"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 |
21384 |
22401 |
74799 |
13744 |
21384 |
1896 |
74800 |
13744 |
21386 |
22403 |
74803 |
13746 |
21386 |
1894 |
74804 |
13746 |
21387 |
22404 |
74805 |
13747 |
21387 |
1893 |
74806 |
13747 |
21623 |
1486 |
75628 |
13951 |
21623 |
23152 |
75622 |
13951 |
21623 |
23153 |
75623 |
13951 |
21623 |
23154 |
75624 |
13951 |
21623 |
23155 |
75625 |
13951 |
21623 |
23156 |
75626 |
13951 |
21623 |
23157 |
75627 |
13951 |
21624 |
1483 |
75631 |
13952 |
21624 |
23158 |
75629 |
13952 |
21624 |
23159 |
75630 |
13952 |
21916 |
24124 |
76714 |
14217 |
21916 |
24123 |
76713 |
14217 |
21916 |
24122 |
76712 |
14217 |
21916 |
24121 |
76711 |
14217 |
21916 |
1055 |
76715 |
14217 |