Query time 0.00077
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "29.12"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt",
"idx_pc_product_id_type"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 64,
"rows_produced_per_join": 64,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.32",
"eval_cost": "6.40",
"prefix_cost": "6.72",
"data_read_per_join": "1024"
},
"used_columns": [
"product_id",
"category_id"
],
"attached_condition": "(`dev2`.`cscart_products_categories`.`product_id` is not null)"
}
},
{
"table": {
"table_name": "cscart_products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"cscart_products_product_id_index",
"idx_status"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"dev2.cscart_products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "7.22",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "0.46",
"prefix_cost": "29.12",
"data_read_per_join": "34K"
},
"used_columns": [
"product_id",
"status",
"company_id"
],
"attached_condition": "((`dev2`.`cscart_products`.`company_id` = 610) and (`dev2`.`cscart_products`.`status` = 'A'))"
}
}
]
}
}