Query time 0.00165
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "112.01"
},
"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": 80,
"rows_produced_per_join": 80,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (1,228,8,9,10,71,4,1549,5851,1550,1548,5737,5995,5728,5879,5968,5920,1551,5876,5902,5860,1546,5846,5897,5880,5782,5985,5784,1547,5767,5780,5844,5764,5872,5971,5841,5768,5835,5910,5873,5853,5901,8266,5763,5855,5921,5883,5904,8265,5769,5772,8267,5886,5906,5996,5783,5913,5781,5842,5840,5986,8264,5770,5916,5865,5867,5907,5771,5903,5776,5889,5874,5834,5878,5875,5877,5905,5963,5863,5909))",
"cost_info": {
"read_cost": "48.01",
"eval_cost": "8.00",
"prefix_cost": "56.01",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 80,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "8.00",
"prefix_cost": "84.01",
"data_read_per_join": "31K"
},
"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": [
"softwarepirmam_hewadelivard_cscart_4.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 80,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "8.00",
"prefix_cost": "112.01",
"data_read_per_join": "8K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 656 |
group_variation_catalog_item |
5763 |
0 |
691 |
PV-0D964248A |
| 656 |
group_variation_catalog_item |
5764 |
0 |
632 |
PV-4B6D8F9C0 |
| 656 |
group_variation_catalog_item |
5772 |
0 |
692 |
PV-08BDF49D3 |
| 656 |
group_variation_catalog_item |
5784 |
0 |
693 |
PV-12B17D52D |
| 656 |
group_variation_catalog_item |
5835 |
0 |
636 |
PV-99E713164 |
| 656 |
group_variation_catalog_item |
5844 |
0 |
637 |
PV-CA49B4CAE |
| 656 |
group_variation_catalog_item |
5860 |
0 |
639 |
PV-670FF697A |
| 656 |
group_variation_catalog_item |
5913 |
0 |
644 |
PV-4AE196AB0 |
| 656 |
group_variation_catalog_item |
5916 |
0 |
645 |
PV-824AC91C6 |
| 766 |
group_catalog_item |
5971 |
0 |
800 |
PV-E2E5B3DBA |
| 766 |
group_catalog_item |
5985 |
0 |
798 |
PV-E66B95606 |
| 766 |
group_catalog_item |
5986 |
0 |
799 |
PV-EDE23DF2F |
| 766 |
group_catalog_item |
8264 |
0 |
798 |
PV-E66B95606 |
| 766 |
group_catalog_item |
8265 |
0 |
799 |
PV-EDE23DF2F |
| 766 |
group_catalog_item |
8266 |
0 |
800 |
PV-E2E5B3DBA |
| 766 |
group_catalog_item |
8267 |
0 |
800 |
PV-E2E5B3DBA |