Query time 0.00136
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "41.30"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_orders",
"access_type": "index_merge",
"possible_keys": [
"PRIMARY",
"user_id",
"status"
],
"key": "intersect(status,user_id)",
"key_length": "3,3",
"rows_examined_per_scan": 61,
"rows_produced_per_join": 61,
"filtered": "99.90",
"cost_info": {
"read_cost": "13.85",
"eval_cost": "6.10",
"prefix_cost": "19.95",
"data_read_per_join": "631K"
},
"used_columns": [
"order_id",
"user_id",
"status"
],
"attached_condition": "(((`chocoramo`.`cscart_orders`.`user_id` = 0) and (`chocoramo`.`cscart_orders`.`status` = 'C')) and (`chocoramo`.`cscart_orders`.`order_id` is not null))"
}
},
{
"table": {
"table_name": "cscart_order_details",
"access_type": "ref",
"possible_keys": [
"o_k"
],
"key": "o_k",
"used_key_parts": [
"order_id",
"product_id"
],
"key_length": "6",
"ref": [
"chocoramo.cscart_orders.order_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 61,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.25",
"eval_cost": "6.10",
"prefix_cost": "41.30",
"data_read_per_join": "14K"
},
"used_columns": [
"item_id",
"order_id",
"product_id"
]
}
}
]
}
}
Result
COUNT(cscart_order_details.item_id) |
0 |