Query time 0.00165
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "86.04"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.03",
"eval_cost": "4.00",
"prefix_cost": "28.03",
"data_read_per_join": "320"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
],
"attached_condition": "(`webmarco`.`p`.`product_id` in (379728,262380,262370,259698,230172,230173,262400,262359,225081,225074,225053,262399,225066,262394,262367,262401,262376,262374,262391,225059))"
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "3",
"ref": [
"webmarco.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "52.03",
"data_read_per_join": "7K"
},
"used_columns": [
"id",
"code"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": [
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"webmarco.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.34",
"eval_cost": "5.67",
"prefix_cost": "86.04",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
697 |
group_variation_catalog_item |
225053 |
0 |
6233 |
PV-E2DAB8356 |
697 |
group_variation_catalog_item |
225059 |
0 |
6232 |
PV-A9CC06226 |
697 |
group_variation_catalog_item |
225066 |
0 |
6234 |
PV-A01854629 |
697 |
group_variation_catalog_item |
225074 |
0 |
6235 |
PV-274DB4C86 |
697 |
group_variation_catalog_item |
225081 |
0 |
6236 |
PV-88CBABE3D |
897 |
group_variation_catalog_item |
230172 |
0 |
6387 |
PV-20514A33B |
897 |
group_variation_catalog_item |
230173 |
0 |
6384 |
PV-C46F7C23F |
897 |
group_variation_catalog_item |
259698 |
0 |
6472 |
PV-5CE224FC8 |
932 |
group_variation_catalog_item |
262359 |
0 |
6687 |
PV-A64AE720F |
932 |
group_variation_catalog_item |
262367 |
0 |
6688 |
PV-C290DF171 |
932 |
group_variation_catalog_item |
262370 |
0 |
6689 |
PV-F20768D91 |
897 |
group_variation_catalog_item |
262376 |
0 |
6690 |
PV-9E6C2009E |
897 |
group_variation_catalog_item |
262380 |
0 |
6692 |
PV-FEE44F36A |
897 |
group_variation_catalog_item |
262391 |
0 |
6693 |
PV-85DFF46F5 |
932 |
group_variation_catalog_item |
262394 |
0 |
6694 |
PV-26864BE63 |