Query time 0.00465
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": 18,
"filtered": 100,
"index_condition": "gp.group_id in (12732,12750,12740,12731,12747,12736)"
}
},
{
"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 |
20273 |
18281 |
70932 |
12731 |
20273 |
18280 |
70931 |
12731 |
20273 |
4387 |
70933 |
12731 |
20274 |
18283 |
70935 |
12732 |
20274 |
18282 |
70934 |
12732 |
20274 |
4386 |
70936 |
12732 |
20278 |
18291 |
70947 |
12736 |
20278 |
18290 |
70946 |
12736 |
20278 |
4382 |
70948 |
12736 |
20282 |
18299 |
70959 |
12740 |
20282 |
18298 |
70958 |
12740 |
20282 |
4378 |
70960 |
12740 |
20289 |
18313 |
70980 |
12747 |
20289 |
18312 |
70979 |
12747 |
20289 |
4371 |
70981 |
12747 |
20292 |
18319 |
70989 |
12750 |
20292 |
18318 |
70988 |
12750 |
20292 |
4368 |
70990 |
12750 |