{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "170.20"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "14.45"
},
"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": 14,
"filtered": "15.70",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (427,408,1971,382,418,1959,1930,1960,1961,1529,1465,1932,1962,1958,329,439,393,394,1929,396,1964,383,1927,1965))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.89",
"prefix_cost": "138.42",
"data_read_per_join": "231"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.45",
"eval_cost": "2.89",
"prefix_cost": "155.76",
"data_read_per_join": "231"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
329 | 358,378,353,357,338,354,355,356,342,370,352,349M,339,376,371,375,374,373,372,369,350,377,351 | 0 |
382 | 381,382,343,340,358,383,378,386,347,384,353,357,338,354,355,341,356,342,370,352,349,339,376,371,375,374,344,373,372,369,350,385,377,351,379,345,337M | 0 |
383 | 377,385,351,345,337M,361,381,368,343,362,340,358,378,386,347,384,353,357,338,354,355,341,356,342,370,363,352,349,339,359,376,371,375,374,344,360,373,372,350 | 0 |
393 | 374,344,373,372,380,379,350,377,385,351,345,337M,382,381,383,343,340,358,378,386,347,384,353,357,338,354,355,341,356,342,370,352,349,339,376,371,369,375 | 0 |
394 | 349,339,376,371,369,375,374,344,373,372,380,379,350,377,385,351,345,337M,382,381,383,343,340,358,378,386,347,384,353,357,338,354,355,341,356,342,370,352 | 0 |
396 | 354,355,341,356,342,370,352,349,339,376,371,369,375,374,344,373,372,350,377,351,345,337M,343,340,358,378,347,353,357,338 | 0 |
408 | 378,347,353,357,338,354,355,341,356,342,370,352,349,339,380,376,371,369,379,375,374,344,373,385,372,350,382,381,377,383,351,345,337M,386,343,384,340,358 | 0 |
418 | 343,340,358,378,353,357,338,354,355,341,356,342,370,352,349,339,376,371,369,375,374,344,373,372,350,377,363,351,345,337M | 0 |
427 | 351,345,337M,386,384,347,343,340,358,378,353,357,338,354,355,380,341,356,379,342,370,352,349,385,339,376,371,369,375,382,374,381,344,373,372,383,350,377 | 0 |
439 | 372,383,360,350,377,351,345,337M,386,384,361,368,343,340,358,362,378,353,357,338,354,355,341,379,342,370,352,349,385,339,376,371,369,359,375,382,374,381,344,373,363 | 0 |
1465 | 376,371,369,359,375,382,374,381,344,373,393,363,372,383,360,350,377,351,345,337,386,396,347,384,394,361M,368,343,340,358,362,378,380,388,356,353,357,338,390,354,392,355,341,379,391,342,370,395,352,349,385,339 | 0 |
1529 | 341,379,391,342,370,395,352,349M,385,339,376,371,369,359,375,374,381,344,373,393,363,372,360,350,377,351,345,337,386,396,347,384,394,361,368,343,340,358,362,378,380,388,356,353,357,338,390,354,392,355 | 0 |
1927 | 353,338,390,379,391,370,349,339,369,359,374,363,350,377,351,345,337,361M,340,358,362,378 | 0 |
1929 | 388,352,338,390,379,391,381,349,373,339,369,359,363M,350,377,345,337 | 0 |
1930 | 356,340,362,354,355,388,341,353,395,376,375,352,338,390,379,391,381,349,339,369,359,363,351,350,377,361M,345,337 | 0 |
1932 | 377,378,345,362M,388,352,338,390,379,391,381,384,349,394,339,369,359,350 | 0 |
1958 | 361M,337,340,377,370,362,388,360,352,338,379,368,381,349,363,339,369,359 | 0 |
1959 | 368,381,349,363,339,369,350,359,361M,337,340,377,370,362,360,352,338,379 | 0 |
1960 | 352,338,379,368,381,349,363,339,378,369,359,361M,337,340,377,370,362,360 | 0 |
1961 | 338,379,350,368,381,349,363,339,378,369,359,361M,337,340,377,370,362,360 | 0 |
1962 | 370,362,360,352,338,379,350,381,349,363,339,369,359,388,361M,390,337,340,377 | 0 |
1964 | 377,370,362,360,368,338,378,379,381,349,363,339,369,359,361M,337,340 | 0 |
1965 | 361M,337,340,377,370,352,362,360,368,338,379,381,349,363,339,369,359 | 0 |
1971 | 363,339,369,359,361M,337,340,377,370,352,362,360,350,368,338,379,381,349 | 0 |