Query time 0.00429
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "312.49"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"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": 92,
"rows_produced_per_join": 92,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "19.51",
"eval_cost": "18.40",
"prefix_cost": "37.91",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gp`.`group_id` in (6893,6963,6964,7591,7594,6962,6719,7609,7595,7025,7019,7592,8413,7026))"
}
},
{
"table": {
"table_name": "gpf",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"webmarco.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 130,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "92.04",
"eval_cost": "26.08",
"prefix_cost": "156.03",
"data_read_per_join": "13K"
},
"used_columns": [
"feature_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": 130,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "130.38",
"eval_cost": "26.08",
"prefix_cost": "312.49",
"data_read_per_join": "100K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
697 |
262341 |
63646 |
6719 |
697 |
262509 |
63647 |
6719 |
697 |
262398 |
63646 |
6893 |
935 |
262398 |
63669 |
6893 |
697 |
262852 |
63647 |
6893 |
935 |
262852 |
63669 |
6893 |
697 |
262853 |
63646 |
6893 |
935 |
262853 |
63670 |
6893 |
697 |
262854 |
63647 |
6893 |
935 |
262854 |
63670 |
6893 |
697 |
262855 |
63646 |
6893 |
935 |
262855 |
63671 |
6893 |
697 |
262856 |
63647 |
6893 |
935 |
262856 |
63671 |
6893 |
697 |
262857 |
63646 |
6893 |
935 |
262857 |
63672 |
6893 |
697 |
262858 |
63647 |
6893 |
935 |
262858 |
63672 |
6893 |
697 |
262859 |
63646 |
6893 |
935 |
262859 |
63673 |
6893 |
697 |
262860 |
63647 |
6893 |
935 |
262860 |
63673 |
6893 |
697 |
264355 |
63647 |
6962 |
697 |
264357 |
63646 |
6962 |
697 |
262924 |
63647 |
6963 |
940 |
262924 |
63947 |
6963 |
697 |
264649 |
63646 |
6963 |
940 |
264649 |
63947 |
6963 |
697 |
264650 |
63646 |
6963 |
940 |
264650 |
63948 |
6963 |
697 |
264651 |
63647 |
6963 |
940 |
264651 |
63948 |
6963 |
697 |
262345 |
63647 |
6964 |
940 |
262345 |
63947 |
6964 |
697 |
264652 |
63646 |
6964 |
940 |
264652 |
63947 |
6964 |
697 |
264653 |
63646 |
6964 |
940 |
264653 |
63948 |
6964 |
697 |
264654 |
63647 |
6964 |
940 |
264654 |
63948 |
6964 |
697 |
265021 |
63647 |
7019 |
947 |
265021 |
63972 |
7019 |
697 |
265022 |
63646 |
7019 |
947 |
265022 |
63972 |
7019 |
697 |
265023 |
63646 |
7019 |
947 |
265023 |
63973 |
7019 |
697 |
265024 |
63646 |
7019 |
947 |
265024 |
63974 |
7019 |
697 |
265025 |
63647 |
7019 |
947 |
265025 |
63973 |
7019 |
697 |
265026 |
63647 |
7019 |
947 |
265026 |
63974 |
7019 |
697 |
265053 |
63647 |
7025 |
948 |
265053 |
64013 |
7025 |
697 |
265054 |
63646 |
7025 |
948 |
265054 |
64013 |
7025 |
697 |
265055 |
63646 |
7025 |
948 |
265055 |
64014 |
7025 |
697 |
265056 |
63646 |
7025 |
948 |
265056 |
64015 |
7025 |
697 |
265057 |
63647 |
7025 |
948 |
265057 |
64014 |
7025 |
697 |
265058 |
63647 |
7025 |
948 |
265058 |
64015 |
7025 |
697 |
265052 |
63647 |
7026 |
697 |
265059 |
63646 |
7026 |
999 |
359697 |
64452 |
7591 |
1050 |
359697 |
65009 |
7591 |
999 |
359698 |
64452 |
7591 |
1050 |
359698 |
65010 |
7591 |
999 |
359699 |
64452 |
7591 |
1050 |
359699 |
65011 |
7591 |
999 |
359700 |
64452 |
7591 |
1050 |
359700 |
65012 |
7591 |
999 |
359701 |
64453 |
7591 |
1050 |
359701 |
65010 |
7591 |
999 |
359702 |
64453 |
7591 |
1050 |
359702 |
65011 |
7591 |
999 |
359703 |
64453 |
7591 |
1050 |
359703 |
65012 |
7591 |
999 |
359704 |
64453 |
7591 |
1050 |
359704 |
65009 |
7591 |
999 |
359705 |
64452 |
7592 |
1050 |
359705 |
65013 |
7592 |
999 |
359706 |
64452 |
7592 |
1050 |
359706 |
65009 |
7592 |
999 |
359707 |
64452 |
7592 |
1050 |
359707 |
65014 |
7592 |
999 |
359708 |
64453 |
7592 |
1050 |
359708 |
65013 |
7592 |
999 |
359709 |
64453 |
7592 |
1050 |
359709 |
65009 |
7592 |
999 |
359710 |
64453 |
7592 |
1050 |
359710 |
65014 |
7592 |
999 |
359715 |
64452 |
7594 |
1052 |
359715 |
65017 |
7594 |
999 |
359716 |
64452 |
7594 |
1052 |
359716 |
65018 |
7594 |
999 |
359717 |
64452 |
7594 |
1052 |
359717 |
65019 |
7594 |
999 |
359718 |
64452 |
7594 |
1052 |
359718 |
65020 |
7594 |
999 |
359719 |
64453 |
7594 |
1052 |
359719 |
65017 |
7594 |
999 |
359720 |
64453 |
7594 |
1052 |
359720 |
65018 |
7594 |
999 |
359721 |
64453 |
7594 |
1052 |
359721 |
65019 |
7594 |
999 |
359722 |
64453 |
7594 |
1052 |
359722 |
65020 |
7594 |
999 |
359723 |
64452 |
7595 |
1053 |
359723 |
65021 |
7595 |
1054 |
359723 |
65023 |
7595 |
999 |
359724 |
64452 |
7595 |
1053 |
359724 |
65021 |
7595 |
1054 |
359724 |
65024 |
7595 |
999 |
359725 |
64452 |
7595 |
1053 |
359725 |
65022 |
7595 |
1054 |
359725 |
65023 |
7595 |
999 |
359726 |
64452 |
7595 |
1053 |
359726 |
65022 |
7595 |
1054 |
359726 |
65024 |
7595 |
999 |
359727 |
64453 |
7595 |
1053 |
359727 |
65021 |
7595 |
1054 |
359727 |
65023 |
7595 |
999 |
359728 |
64453 |
7595 |
1053 |
359728 |
65021 |
7595 |
1054 |
359728 |
65024 |
7595 |
999 |
359729 |
64453 |
7595 |
1053 |
359729 |
65022 |
7595 |
1054 |
359729 |
65023 |
7595 |
999 |
359730 |
64453 |
7595 |
1053 |
359730 |
65022 |
7595 |
1054 |
359730 |
65024 |
7595 |
999 |
359780 |
64452 |
7609 |
1048 |
359780 |
65003 |
7609 |
1049 |
359780 |
65004 |
7609 |
999 |
359781 |
64452 |
7609 |
1048 |
359781 |
65002 |
7609 |
1049 |
359781 |
65004 |
7609 |
999 |
359782 |
64453 |
7609 |
1048 |
359782 |
65002 |
7609 |
1049 |
359782 |
65004 |
7609 |
999 |
359783 |
64453 |
7609 |
1048 |
359783 |
65003 |
7609 |
1049 |
359783 |
65004 |
7609 |
999 |
359784 |
64452 |
7609 |
1048 |
359784 |
65003 |
7609 |
1049 |
359784 |
65005 |
7609 |
999 |
359785 |
64452 |
7609 |
1048 |
359785 |
65002 |
7609 |
1049 |
359785 |
65005 |
7609 |
999 |
359786 |
64453 |
7609 |
1048 |
359786 |
65002 |
7609 |
1049 |
359786 |
65005 |
7609 |
999 |
359787 |
64453 |
7609 |
1048 |
359787 |
65003 |
7609 |
1049 |
359787 |
65005 |
7609 |
999 |
359788 |
64452 |
7609 |
1048 |
359788 |
65003 |
7609 |
1049 |
359788 |
65006 |
7609 |
999 |
359789 |
64452 |
7609 |
1048 |
359789 |
65002 |
7609 |
1049 |
359789 |
65006 |
7609 |
999 |
359790 |
64453 |
7609 |
1048 |
359790 |
65002 |
7609 |
1049 |
359790 |
65006 |
7609 |
999 |
359791 |
64453 |
7609 |
1048 |
359791 |
65003 |
7609 |
1049 |
359791 |
65006 |
7609 |
999 |
359792 |
64452 |
7609 |
1048 |
359792 |
65003 |
7609 |
1049 |
359792 |
65007 |
7609 |
999 |
359793 |
64452 |
7609 |
1048 |
359793 |
65002 |
7609 |
1049 |
359793 |
65007 |
7609 |
999 |
359794 |
64453 |
7609 |
1048 |
359794 |
65002 |
7609 |
1049 |
359794 |
65007 |
7609 |
999 |
359795 |
64453 |
7609 |
1048 |
359795 |
65003 |
7609 |
1049 |
359795 |
65007 |
7609 |
999 |
359796 |
64452 |
7609 |
1048 |
359796 |
65003 |
7609 |
1049 |
359796 |
65008 |
7609 |
999 |
359797 |
64452 |
7609 |
1048 |
359797 |
65002 |
7609 |
1049 |
359797 |
65008 |
7609 |
999 |
359798 |
64453 |
7609 |
1048 |
359798 |
65002 |
7609 |
1049 |
359798 |
65008 |
7609 |
999 |
359799 |
64453 |
7609 |
1048 |
359799 |
65003 |
7609 |
1049 |
359799 |
65008 |
7609 |
697 |
388351 |
63647 |
8413 |
1115 |
388351 |
66095 |
8413 |
697 |
388352 |
63646 |
8413 |
1115 |
388352 |
66095 |
8413 |
697 |
388353 |
63646 |
8413 |
1115 |
388353 |
66096 |
8413 |
697 |
388354 |
63646 |
8413 |
1115 |
388354 |
66097 |
8413 |
697 |
388355 |
63647 |
8413 |
1115 |
388355 |
66096 |
8413 |
697 |
388356 |
63647 |
8413 |
1115 |
388356 |
66097 |
8413 |