Query time 0.00266
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "191.17"
},
"nested_loop": [
{
"table": {
"table_name": "gpf",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 13,
"rows_produced_per_join": 13,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.62",
"eval_cost": "2.60",
"prefix_cost": "6.22",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gpf`.`group_id` in (8349,8382,10757,10766,10771,10761,10762))"
}
},
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"webmarco.gpf.group_id"
],
"rows_examined_per_scan": 9,
"rows_produced_per_join": 122,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "13.12",
"eval_cost": "24.55",
"prefix_cost": "43.89",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"webmarco.gpf.feature_id",
"webmarco.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 122,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "122.73",
"eval_cost": "24.55",
"prefix_cost": "191.17",
"data_read_per_join": "94K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
548 |
372040 |
65027 |
8349 |
860 |
372040 |
64808 |
8349 |
860 |
381634 |
65162 |
8382 |
860 |
432460 |
64677 |
10757 |
860 |
432462 |
64677 |
10757 |
860 |
432463 |
64677 |
10757 |
860 |
432472 |
60615 |
10757 |
860 |
432473 |
60615 |
10757 |
860 |
432474 |
60615 |
10757 |
860 |
432475 |
64062 |
10757 |
860 |
432476 |
64062 |
10757 |
860 |
432477 |
64062 |
10757 |
860 |
432478 |
64477 |
10757 |
860 |
432479 |
64477 |
10757 |
860 |
432480 |
64477 |
10757 |
860 |
432481 |
64575 |
10757 |
860 |
432482 |
64575 |
10757 |
860 |
432483 |
64575 |
10757 |
860 |
432484 |
64732 |
10757 |
860 |
432485 |
64732 |
10757 |
860 |
432486 |
64732 |
10757 |
860 |
432487 |
64753 |
10757 |
860 |
432488 |
64753 |
10757 |
860 |
432489 |
64753 |
10757 |
860 |
432490 |
66261 |
10757 |
860 |
432491 |
66261 |
10757 |
860 |
432492 |
66261 |
10757 |
860 |
432493 |
67568 |
10757 |
860 |
432494 |
67568 |
10757 |
860 |
432495 |
67568 |
10757 |
1013 |
432460 |
64561 |
10757 |
1013 |
432462 |
64562 |
10757 |
1013 |
432463 |
64563 |
10757 |
1013 |
432472 |
64561 |
10757 |
1013 |
432473 |
64562 |
10757 |
1013 |
432474 |
64563 |
10757 |
1013 |
432475 |
64561 |
10757 |
1013 |
432476 |
64562 |
10757 |
1013 |
432477 |
64563 |
10757 |
1013 |
432478 |
64561 |
10757 |
1013 |
432479 |
64562 |
10757 |
1013 |
432480 |
64563 |
10757 |
1013 |
432481 |
64561 |
10757 |
1013 |
432482 |
64562 |
10757 |
1013 |
432483 |
64563 |
10757 |
1013 |
432484 |
64561 |
10757 |
1013 |
432485 |
64562 |
10757 |
1013 |
432486 |
64563 |
10757 |
1013 |
432487 |
64561 |
10757 |
1013 |
432488 |
64562 |
10757 |
1013 |
432489 |
64563 |
10757 |
1013 |
432490 |
64561 |
10757 |
1013 |
432491 |
64562 |
10757 |
1013 |
432492 |
64563 |
10757 |
1013 |
432493 |
64561 |
10757 |
1013 |
432494 |
64562 |
10757 |
1013 |
432495 |
64563 |
10757 |
860 |
432449 |
64677 |
10761 |
860 |
432515 |
60615 |
10761 |
860 |
432516 |
60615 |
10761 |
860 |
432517 |
60615 |
10761 |
860 |
432518 |
64236 |
10761 |
860 |
432519 |
64236 |
10761 |
860 |
432520 |
64236 |
10761 |
860 |
432521 |
64677 |
10761 |
860 |
432522 |
64677 |
10761 |
1013 |
432449 |
64561 |
10761 |
1013 |
432515 |
64561 |
10761 |
1013 |
432516 |
64562 |
10761 |
1013 |
432517 |
64563 |
10761 |
1013 |
432518 |
64561 |
10761 |
1013 |
432519 |
64562 |
10761 |
1013 |
432520 |
64563 |
10761 |
1013 |
432521 |
64562 |
10761 |
1013 |
432522 |
64563 |
10761 |
860 |
432419 |
64475 |
10762 |
860 |
432523 |
64475 |
10762 |
860 |
432524 |
64475 |
10762 |
1013 |
432419 |
64561 |
10762 |
1013 |
432523 |
64562 |
10762 |
1013 |
432524 |
64563 |
10762 |
860 |
432541 |
64475 |
10766 |
860 |
432542 |
64062 |
10766 |
860 |
432543 |
64062 |
10766 |
860 |
432544 |
64062 |
10766 |
860 |
432545 |
64475 |
10766 |
860 |
432546 |
64475 |
10766 |
860 |
432547 |
64677 |
10766 |
860 |
432548 |
64677 |
10766 |
860 |
432549 |
64677 |
10766 |
860 |
432550 |
66121 |
10766 |
860 |
432551 |
66121 |
10766 |
860 |
432552 |
66121 |
10766 |
1013 |
432541 |
64561 |
10766 |
1013 |
432542 |
64561 |
10766 |
1013 |
432543 |
64562 |
10766 |
1013 |
432544 |
64563 |
10766 |
1013 |
432545 |
64562 |
10766 |
1013 |
432546 |
64563 |
10766 |
1013 |
432547 |
64561 |
10766 |
1013 |
432548 |
64562 |
10766 |
1013 |
432549 |
64563 |
10766 |
1013 |
432550 |
64561 |
10766 |
1013 |
432551 |
64562 |
10766 |
1013 |
432552 |
64563 |
10766 |
860 |
432589 |
64575 |
10771 |
860 |
432590 |
64545 |
10771 |
860 |
432591 |
64545 |
10771 |
860 |
432592 |
64545 |
10771 |
860 |
432593 |
64575 |
10771 |
860 |
432594 |
64575 |
10771 |
860 |
432595 |
66121 |
10771 |
860 |
432596 |
66121 |
10771 |
860 |
432597 |
66121 |
10771 |
1013 |
432589 |
64561 |
10771 |
1013 |
432590 |
64561 |
10771 |
1013 |
432591 |
64562 |
10771 |
1013 |
432592 |
64563 |
10771 |
1013 |
432593 |
64562 |
10771 |
1013 |
432594 |
64563 |
10771 |
1013 |
432595 |
64561 |
10771 |
1013 |
432596 |
64562 |
10771 |
1013 |
432597 |
64563 |
10771 |