Query time 0.00096
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": 23,
"filtered": 100,
"index_condition": "gp.group_id in (12309,12313,12310,12308,12195,12196)"
}
},
{
"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 |
19667 |
14961 |
68396 |
12195 |
19667 |
6527 |
68397 |
12195 |
19668 |
14963 |
68399 |
12196 |
19668 |
14962 |
68398 |
12196 |
19668 |
6526 |
68400 |
12196 |
19794 |
50680 |
68829 |
12308 |
19794 |
50681 |
68830 |
12308 |
19794 |
50682 |
68831 |
12308 |
19794 |
50683 |
68832 |
12308 |
19794 |
50684 |
68833 |
12308 |
19794 |
50685 |
68834 |
12308 |
19794 |
6069 |
68835 |
12308 |
19795 |
15493 |
68839 |
12309 |
19795 |
15492 |
68838 |
12309 |
19795 |
15491 |
68837 |
12309 |
19795 |
15490 |
68836 |
12309 |
19795 |
6068 |
68840 |
12309 |
19796 |
49239 |
87234 |
12310 |
19796 |
6067 |
68841 |
12310 |
19802 |
15581 |
68877 |
12313 |
19802 |
15576 |
68876 |
12313 |
19802 |
15575 |
68875 |
12313 |
19802 |
15574 |
68874 |
12313 |
19802 |
15573 |
68873 |
12313 |
19802 |
15572 |
68872 |
12313 |
19802 |
6064 |
68872 |
12313 |