Query time 0.00084
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "201.61"
},
"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": 96,
"rows_produced_per_join": 96,
"filtered": "100.00",
"index_condition": "(`gaseus`.`p`.`product_id` in (8761,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9581,9582,9583,9584,9585,9586,9587,9588,9589,9590,9591,9592,9593,9594,9595,9596,9597,9598,9599,9600,9601,9602,9603,9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9616,9617,9618,9619,9620,9621,9622,9623,9624,9625,9626,9627,9628,9629,9630,9631,9632,9633,9634,9635,9636,9637,9638,9639,9640,9641,10049,10050,10051,10052,10053,10054,10055,10056,10057,10058,10059,10060,10061,10062,10063,10064))",
"cost_info": {
"read_cost": "57.61",
"eval_cost": "9.60",
"prefix_cost": "67.21",
"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": [
"gaseus.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 96,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "9.60",
"prefix_cost": "100.81",
"data_read_per_join": "37K"
},
"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": [
"gaseus.p.group_id"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 288,
"filtered": "100.00",
"cost_info": {
"read_cost": "72.00",
"eval_cost": "28.80",
"prefix_cost": "201.61",
"data_read_per_join": "29K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 646 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 637 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 627 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 553 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 625 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 624 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 628 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 647 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |
| 645 |
group_variation_catalog_item |
8761 |
0 |
835 |
PV-79DC28CB6 |