Query time 0.01084
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": 38,
"filtered": 100,
"index_condition": "gp.group_id in (16863,16665,16862,16664,16663)"
}
},
{
"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 |
24437 |
43650 |
85227 |
16663 |
24437 |
43799 |
85228 |
16663 |
24437 |
43800 |
85229 |
16663 |
24437 |
43801 |
85230 |
16663 |
24437 |
43802 |
85231 |
16663 |
24437 |
43803 |
85232 |
16663 |
24437 |
43804 |
85233 |
16663 |
24437 |
43805 |
85234 |
16663 |
24438 |
43651 |
85235 |
16664 |
24438 |
43806 |
85236 |
16664 |
24438 |
43807 |
85237 |
16664 |
24439 |
43652 |
85238 |
16665 |
24439 |
43808 |
85239 |
16665 |
24439 |
43809 |
85240 |
16665 |
24439 |
43810 |
85241 |
16665 |
24439 |
43811 |
85242 |
16665 |
24439 |
43812 |
85243 |
16665 |
24630 |
45282 |
85973 |
16862 |
24630 |
45662 |
85974 |
16862 |
24630 |
45663 |
85975 |
16862 |
24630 |
45664 |
85976 |
16862 |
24630 |
45665 |
85977 |
16862 |
24630 |
45666 |
85978 |
16862 |
24630 |
45667 |
85979 |
16862 |
24631 |
45283 |
85980 |
16863 |
24631 |
45668 |
85981 |
16863 |