Query time 0.00095
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.81"
},
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_products_categories`.`product_id` in (7072,7134,7139,7192,7256,7359,7360,7367,7411,7449,7506,7571,7698,7850,8801,8960,9014,9514,9546,9752,9881,10148,10325,10420))",
"cost_info": {
"read_cost": "15.11",
"eval_cost": "2.60",
"prefix_cost": "17.71",
"data_read_per_join": "416"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.cscart_products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "6.50",
"eval_cost": "0.13",
"prefix_cost": "26.81",
"data_read_per_join": "4K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`storefront_id` in (0,1)) and ((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`status` in ('A','H')))"
}
}
]
}
}
}
Result
| product_id |
category_ids |
| 7072 |
628M |
| 7134 |
628M |
| 7139 |
628M |
| 7192 |
623M |
| 7256 |
623M |
| 7359 |
651M |
| 7360 |
651M |
| 7367 |
651M |
| 7411 |
651M |
| 7449 |
651M |
| 7506 |
623M |
| 7571 |
633M |
| 7698 |
655M |
| 7850 |
623,622,625M |
| 8801 |
423,657M |
| 8960 |
583M |
| 9014 |
584M |
| 9514 |
646M |
| 9546 |
577M |
| 9752 |
661M |
| 9881 |
323M |
| 10148 |
372M |
| 10325 |
372,166M |
| 10420 |
574M |