Query time 0.00057
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.08974069,
"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"],
"loops": 1,
"rows": 2,
"cost": 0.00193929,
"filtered": 100,
"using_index": true
}
},
{
"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"],
"loops": 2,
"rows": 22,
"cost": 0.00892678,
"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",
"u985510652_ecartify_abhi.gpf.feature_id",
"u985510652_ecartify_abhi.gp.product_id"
],
"loops": 44,
"rows": 1,
"cost": 0.07887462,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 548 |
278 |
1195 |
10 |
| 548 |
279 |
1194 |
10 |
| 548 |
280 |
1195 |
10 |
| 548 |
281 |
1194 |
10 |
| 548 |
282 |
1195 |
10 |
| 548 |
283 |
1194 |
10 |
| 548 |
284 |
1193 |
10 |
| 548 |
2497 |
1193 |
10 |
| 548 |
2498 |
1194 |
10 |
| 548 |
2499 |
1195 |
10 |
| 548 |
2500 |
1193 |
10 |
| 548 |
2501 |
1194 |
10 |
| 548 |
2502 |
1195 |
10 |
| 548 |
2503 |
1193 |
10 |
| 548 |
2504 |
1194 |
10 |
| 548 |
2505 |
1195 |
10 |
| 548 |
2506 |
1193 |
10 |
| 548 |
2507 |
1194 |
10 |
| 548 |
2508 |
1195 |
10 |
| 548 |
2509 |
1193 |
10 |
| 548 |
2510 |
1194 |
10 |
| 548 |
2511 |
1195 |
10 |
| 549 |
278 |
1201 |
10 |
| 549 |
279 |
1201 |
10 |
| 549 |
280 |
1200 |
10 |
| 549 |
281 |
1200 |
10 |
| 549 |
282 |
1199 |
10 |
| 549 |
283 |
1199 |
10 |
| 549 |
284 |
1199 |
10 |
| 549 |
2497 |
2472 |
10 |
| 549 |
2498 |
2472 |
10 |
| 549 |
2499 |
2472 |
10 |
| 549 |
2500 |
2473 |
10 |
| 549 |
2501 |
2473 |
10 |
| 549 |
2502 |
2473 |
10 |
| 549 |
2503 |
2474 |
10 |
| 549 |
2504 |
2474 |
10 |
| 549 |
2505 |
2474 |
10 |
| 549 |
2506 |
2475 |
10 |
| 549 |
2507 |
2475 |
10 |
| 549 |
2508 |
2475 |
10 |
| 549 |
2509 |
1198 |
10 |
| 549 |
2510 |
1198 |
10 |
| 549 |
2511 |
1198 |
10 |