Query time 0.00132
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "143.20"
},
"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": 42,
"rows_produced_per_join": 42,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "9.46",
"eval_cost": "8.40",
"prefix_cost": "17.86",
"data_read_per_join": "672"
},
"used_columns": [
"product_id",
"group_id"
],
"attached_condition": "(`webmarco`.`gp`.`group_id` in (8355,8373,8370,8367,8380,8369,8368,8365,8378,8354))"
}
},
{
"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": 59,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "42.02",
"eval_cost": "11.90",
"prefix_cost": "71.78",
"data_read_per_join": "6K"
},
"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": 59,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "59.52",
"eval_cost": "11.90",
"prefix_cost": "143.21",
"data_read_per_join": "46K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
939 |
371843 |
63938 |
8354 |
939 |
377765 |
63939 |
8354 |
939 |
377766 |
63940 |
8354 |
939 |
377767 |
63941 |
8354 |
939 |
371848 |
63937 |
8355 |
939 |
377768 |
63938 |
8355 |
939 |
377769 |
63939 |
8355 |
939 |
377770 |
63940 |
8355 |
939 |
377771 |
63941 |
8355 |
939 |
371905 |
63939 |
8365 |
939 |
377794 |
63940 |
8365 |
939 |
377795 |
63941 |
8365 |
939 |
371912 |
63937 |
8367 |
939 |
377798 |
63938 |
8367 |
939 |
377799 |
63939 |
8367 |
939 |
377800 |
63940 |
8367 |
939 |
377801 |
63941 |
8367 |
939 |
371917 |
63939 |
8368 |
939 |
377802 |
63941 |
8368 |
939 |
377803 |
65309 |
8368 |
939 |
377735 |
63937 |
8369 |
939 |
377804 |
63938 |
8369 |
939 |
377805 |
63939 |
8369 |
939 |
377806 |
63940 |
8369 |
939 |
377807 |
63941 |
8369 |
939 |
377755 |
63937 |
8370 |
939 |
377808 |
63938 |
8370 |
939 |
377809 |
63939 |
8370 |
939 |
377810 |
63940 |
8370 |
939 |
371936 |
63939 |
8373 |
939 |
379177 |
63940 |
8373 |
939 |
379178 |
63941 |
8373 |
939 |
379179 |
65309 |
8373 |
939 |
371984 |
63937 |
8378 |
939 |
379707 |
63938 |
8378 |
939 |
379708 |
63941 |
8378 |
939 |
379709 |
65309 |
8378 |
939 |
372021 |
63937 |
8380 |
939 |
379711 |
63938 |
8380 |
939 |
379712 |
63939 |
8380 |
939 |
379713 |
63940 |
8380 |
939 |
379714 |
63941 |
8380 |