Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "70.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": 50,
"rows_produced_per_join": 50,
"filtered": "100.00",
"index_condition": "(`cscartdb`.`p`.`product_id` in (62664,38291,62098,38885,37523,37795,37811,38886,56522,61792,62039,37805,37815,37817,38672,56523,64452,62155,11278,38884,11273,11301,37793,37798,37810,56510,60470,67416,11282,37803,37806,37808,37812,37813,37814,37819,37824,56518,60469,62071,62082,62063,62079,11286,37797,37800,37801,37816,56516,56521))",
"cost_info": {
"read_cost": "30.01",
"eval_cost": "5.00",
"prefix_cost": "35.01",
"data_read_per_join": "800"
},
"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": [
"cscartdb.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.50",
"eval_cost": "5.00",
"prefix_cost": "52.51",
"data_read_per_join": "19K"
},
"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": [
"cscartdb.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.50",
"eval_cost": "5.00",
"prefix_cost": "70.01",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
1430 |
group_variation_catalog_item |
61792 |
0 |
2145 |
PV-D80139ED8 |
1437 |
group_variation_catalog_item |
61792 |
0 |
2145 |
PV-D80139ED8 |
1449 |
group_variation_catalog_item |
62039 |
0 |
2205 |
PV-CC8D5EE2C |
1465 |
group_variation_catalog_item |
62664 |
0 |
2274 |
PV-9FACB166B |
1484 |
group_variation_catalog_item |
64452 |
0 |
2513 |
PV-705CBECB9 |