Query time 0.00055
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"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": ["const"],
"rows": 2,
"filtered": 100
}
},
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["const"],
"rows": 11,
"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": [
"lillyshop_lillyshop.gp.product_id",
"lillyshop_lillyshop.gpf.feature_id",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'ru'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 155 |
18478 |
4764 |
303 |
| 155 |
12923 |
4766 |
303 |
| 155 |
13009 |
4764 |
303 |
| 155 |
12971 |
4766 |
303 |
| 155 |
12514 |
4766 |
303 |
| 155 |
12513 |
4766 |
303 |
| 155 |
11882 |
4764 |
303 |
| 155 |
11831 |
4764 |
303 |
| 155 |
19266 |
4764 |
303 |
| 155 |
13736 |
4766 |
303 |
| 155 |
18153 |
4766 |
303 |
| 84 |
18478 |
3096 |
303 |
| 84 |
12923 |
3096 |
303 |
| 84 |
13009 |
3096 |
303 |
| 84 |
12971 |
3089 |
303 |
| 84 |
12514 |
3089 |
303 |
| 84 |
12513 |
3089 |
303 |
| 84 |
11882 |
3089 |
303 |
| 84 |
11831 |
3089 |
303 |
| 84 |
19266 |
3089 |
303 |
| 84 |
13736 |
3089 |
303 |
| 84 |
18153 |
3096 |
303 |