Query time 0.00043
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.04"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_product_sales",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"pa"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.04",
"eval_cost": "1.00",
"prefix_cost": "3.04",
"data_read_per_join": "80"
},
"used_columns": [
"category_id",
"product_id",
"amount"
],
"attached_condition": "(`danishecarter_25_march`.`cscart_product_sales`.`product_id` in (150,148,149,5,1,23,8,172))"
}
},
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"link_type",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"ref": [
"danishecarter_25_march.cscart_product_sales.category_id",
"danishecarter_25_march.cscart_product_sales.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "90.94",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "0.91",
"prefix_cost": "9.04",
"data_read_per_join": "72"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
],
"attached_condition": "(`danishecarter_25_march`.`cscart_products_categories`.`link_type` = 'M')"
}
}
]
}
}