Query time 0.00018
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
}
},
{
"block-nl-join": {
"table": {
"table_name": "gp",
"access_type": "index",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["product_id", "group_id"],
"rows": 11,
"filtered": 63.63636398,
"attached_condition": "gp.group_id = 10",
"using_index": true
},
"buffer_type": "flat",
"buffer_size": "86",
"join_type": "BNL"
}
},
{
"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": [
"devvipiriscom.gp.product_id",
"devvipiriscom.gpf.feature_id",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 548 |
278 |
1195 |
10 |
| 549 |
278 |
1201 |
10 |
| 548 |
279 |
1194 |
10 |
| 549 |
279 |
1201 |
10 |
| 548 |
280 |
1195 |
10 |
| 549 |
280 |
1200 |
10 |
| 548 |
281 |
1194 |
10 |
| 549 |
281 |
1200 |
10 |
| 548 |
282 |
1195 |
10 |
| 549 |
282 |
1199 |
10 |
| 548 |
283 |
1194 |
10 |
| 549 |
283 |
1199 |
10 |
| 548 |
284 |
1193 |
10 |
| 549 |
284 |
1199 |
10 |