Query time 0.00210
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": 28,
"filtered": 100,
"index_condition": "gp.group_id in (12922,12921,12920,12919,12923,12918)"
}
},
{
"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 |
20468 |
18787 |
71601 |
12918 |
20468 |
18786 |
71600 |
12918 |
20468 |
18785 |
71599 |
12918 |
20468 |
18784 |
71598 |
12918 |
20468 |
3870 |
71602 |
12918 |
20469 |
18795 |
71610 |
12919 |
20469 |
18794 |
71609 |
12919 |
20469 |
18793 |
71608 |
12919 |
20469 |
18792 |
71607 |
12919 |
20469 |
18791 |
71606 |
12919 |
20469 |
18790 |
71605 |
12919 |
20469 |
18789 |
71604 |
12919 |
20469 |
18788 |
71603 |
12919 |
20469 |
3869 |
71611 |
12919 |
20470 |
18799 |
71616 |
12920 |
20470 |
18798 |
71614 |
12920 |
20470 |
18797 |
71613 |
12920 |
20470 |
18796 |
71612 |
12920 |
20470 |
3868 |
71615 |
12920 |
20471 |
18803 |
71621 |
12921 |
20471 |
18802 |
71619 |
12921 |
20471 |
18801 |
71618 |
12921 |
20471 |
18800 |
71617 |
12921 |
20471 |
3867 |
71620 |
12921 |
20472 |
18807 |
71626 |
12922 |
20472 |
18806 |
71624 |
12922 |
20472 |
18805 |
71623 |
12922 |
20472 |
18804 |
71622 |
12922 |
20472 |
3866 |
71625 |
12922 |
20473 |
18811 |
71631 |
12923 |
20473 |
18810 |
71629 |
12923 |
20473 |
18809 |
71628 |
12923 |
20473 |
18808 |
71627 |
12923 |
20473 |
3865 |
71630 |
12923 |