Query time 0.00054
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.033763515,
"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"],
"loops": 1,
"rows": 13,
"cost": 0.005997385,
"filtered": 100,
"attached_condition": "gp.group_id in (38,29,34)",
"using_index": true
}
},
{
"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": ["u428615623_ecartifygonje.gp.group_id"],
"loops": 13,
"rows": 1,
"cost": 0.013473465,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "lang_code",
"key_length": "12",
"used_key_parts": ["lang_code", "feature_id", "product_id"],
"ref": [
"const",
"u428615623_ecartifygonje.gpf.feature_id",
"u428615623_ecartifygonje.gp.product_id"
],
"loops": 13,
"rows": 1,
"cost": 0.014292665,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 37 |
165 |
5699 |
29 |
| 37 |
205 |
5700 |
29 |
| 37 |
206 |
5701 |
29 |
| 37 |
236 |
5707 |
29 |
| 37 |
237 |
5708 |
29 |
| 37 |
221 |
5699 |
34 |
| 37 |
222 |
5700 |
34 |
| 37 |
223 |
5701 |
34 |
| 37 |
238 |
5707 |
34 |
| 37 |
239 |
5708 |
34 |
| 40 |
196 |
5709 |
38 |
| 40 |
230 |
5710 |
38 |
| 40 |
231 |
5711 |
38 |