{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "149.02"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "4.82"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"rows_examined_per_scan": 115,
"rows_produced_per_join": 2,
"filtered": "2.00",
"cost_info": {
"read_cost": "27.56",
"eval_cost": "0.46",
"prefix_cost": "28.02",
"data_read_per_join": "6K"
},
"used_columns": [
"category_id",
"company_id",
"usergroup_ids",
"status"
],
"attached_condition": "((`eshopuga_upgr_4122`.`cscart_categories`.`company_id` = 1) and ((`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`)) and (`eshopuga_upgr_4122`.`cscart_categories`.`status` in ('A','H')))"
}
},
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"eshopuga_upgr_4122.cscart_categories.category_id"
],
"rows_examined_per_scan": 40,
"rows_produced_per_join": 4,
"filtered": "5.23",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (325,1936,387,386,416,326,441,322))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "0.96",
"prefix_cost": "138.42",
"data_read_per_join": "77"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
]
}
},
{
"table": {
"table_name": "product_position_source",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"ref": [
"const",
"eshopuga_upgr_4122.cscart_products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.82",
"eval_cost": "0.96",
"prefix_cost": "144.20",
"data_read_per_join": "77"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
322 | 353,369,339,349M,375,355,377,354,356,352,344,338,370,357,372,350,374,342,358,376,341,378,351,345,371,373 | 0 |
325 | 353,349M,355,356,352,357,350,358,351 | 0 |
326 | 351,371,379,361,373,369,375,382,389,377,385,353,354,392,349M,363,390,355,380,395,386,356,383,359,370,352,372,368,393,374,376,381,362,357,388,378,350,384,358,391,396,360,394 | 0 |
386 | 345,358,339,351,337M,343,344,353,338,354,349,355,356,342,352,341,347,357,350,340 | 0 |
387 | 357,350,340,345,358,339,351,337M,343,344,353,338,354,349,355,356,342,352,341,347 | 0 |
416 | 342,391,352,396,341,360,394,357,361,350,340,345,358,392,339,363,351,390,337M,395,343,359,344,353,338,354,368,393,349,355,362,388,356 | 0 |
441 | 355,362,347,356,342,352,341,360,371,369,382,357,361,350,340,345,358,380,339,383,363,351,370,337M,343,372,359,344,381,353,338,354,368,349,384 | 0 |
1936 | 359,381,388,353,338,349,384,391,396,362,379,394,356,373,352,375,341,360,377,369,361M,350,386,345,390,395,339,374,363,370,337,376,378 | 0 |