{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "163.69"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "11.49"
},
"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": 11,
"filtered": "12.48",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (417,1937,414,425,407,389,402,388,426,409,404,1936,387,386,416,441,322))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.30",
"prefix_cost": "138.42",
"data_read_per_join": "183"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.49",
"eval_cost": "2.30",
"prefix_cost": "152.21",
"data_read_per_join": "183"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
322 | 358,370,371,369,372,350,339,341,373,374,345,375,338,349M,355,376,377,352,357,378,344,351,353,342,354,356 | 0 |
386 | 351,347,353,342,343,354,356,358,350,339,341,345,338,349,355,352,357,344,340,337M | 0 |
387 | 344,340,337M,351,347,353,342,343,354,356,358,350,339,341,345,338,349,355,352,357 | 0 |
388 | 352,357,368,380,361,379,344,340,337M,351,347,353,342,343,354,356,362,360,358,386,363,359,350,339,341,384,385,345,338,349,355,381,383,382 | 0 |
389 | 338,349,355,381,383,382,352,357,370,371,380,369,372,379,344,340,337M,373,374,351,347,353,342,343,354,356,375,376,377,358,378,386,350,339,341,384,385,345 | 0 |
402 | 339,341,391,394,345,338,349,355,368,361,390,352,357,393,344,340,337M,388,362,360,351,347,353,342,343,354,356,396,363,359,358,392,395,350 | 0 |
404 | 350,339,341,345,338,349,355,352,357,344,340,337M,351,347,353,342,343,354,356,358 | 0 |
407 | 384,392,395,385,358,381,383,391,394,350,382,339,341,368,380,361,345,390,338,349,355,379,352,357,393,388,362,360,344,340,337M,396,386,363,351,347,359,353,342,343,354,356 | 0 |
409 | 351,347,353,342,343,354,356,358,350,339,341,345,349,355,352,357,344,340,337M | 0 |
414 | 363,359,344,340,337M,351,353,342,343,354,356,370,371,358,369,372,373,368,361,350,374,339,341,338,375,376,345,349,355,377,362,360,378,352,357 | 0 |
416 | 362,360,352,357,392,395,363,359,344,340,337M,391,351,394,353,342,343,354,356,358,390,368,361,350,339,341,338,393,388,345,349,355,396 | 0 |
417 | 345,349,355,352,357,344,340,337M,351,353,342,343,354,356,358,350,339,341,338 | 0 |
425 | 350,339,341,338,345,347,349,355,352,357,344,340,337M,351,353,342,343,354,356,358 | 0 |
426 | 378,386,358,384,350,339,341,338,385,381,345,383,349,355,382,370,352,357,371,372,379,373,344,340,337M,374,375,351,376,353,342,343,354,356,377 | 0 |
441 | 351,353,342,343,354,356,362,360,358,384,350,363,347,339,341,338,359,381,345,383,349,355,380,369,382,370,352,357,371,372,368,361,344,340,337M | 0 |
1936 | 376,361M,337,377,396,378,386,353,356,362,360,395,384,350,391,363,339,341,338,359,394,381,345,349,369,390,379,370,373,352,374,375,388 | 0 |
1937 | 373,368,352,344,340,374,375,388,351,376,361M,342,337,343,354,377,396,378,392,386,353,356,358,385,362,360,395,347,384,350,391,363,339,341,338,359,355,380,394,382,381,345,349,357,371,369,390,372,379,393,370 | 0 |