{
"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,352,370,349M,339,376,371,375,374,373,372,350,369,377,351 | 0 |
382 | 381,343,382,340,358,378,383,347,386,353,357,384,338,354,355,341,356,342,352,370,349,339,376,371,375,344,374,373,372,350,369,377,385,351,345,337M,379 | 0 |
383 | 377,385,351,345,337M,361,381,368,343,362,340,358,378,347,386,353,357,384,338,354,355,341,356,342,363,352,370,349,339,359,376,371,375,344,360,374,373,372,350 | 0 |
393 | 344,374,373,372,380,350,379,377,385,351,345,337M,382,381,383,343,340,358,378,347,386,353,357,384,338,354,355,341,356,342,352,370,349,339,376,371,369,375 | 0 |
394 | 349,339,376,371,369,375,344,374,373,372,380,350,379,377,385,351,345,337M,382,381,383,343,340,358,378,347,386,353,357,384,338,354,355,341,356,342,352,370 | 0 |
396 | 354,355,341,356,342,352,370,349,339,376,371,369,375,344,374,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,352,370,349,339,380,376,371,369,379,375,344,374,373,385,372,350,382,381,377,351,383,345,337M,343,386,340,384,358 | 0 |
418 | 343,340,358,378,353,357,338,354,355,341,356,342,352,370,349,339,376,371,369,375,344,374,373,372,350,363,377,351,345,337M | 0 |
427 | 351,345,337M,386,384,347,343,340,358,378,353,357,338,354,355,341,356,380,342,379,352,370,349,339,385,376,371,369,375,382,344,374,381,373,372,383,350,377 | 0 |
439 | 360,372,383,350,377,351,345,337M,386,384,361,343,368,340,358,362,378,353,357,338,354,355,341,342,379,352,370,349,339,385,359,376,371,369,375,382,344,374,381,363,373 | 0 |
1465 | 359,376,371,369,375,382,344,374,381,363,373,393,360,372,383,350,377,351,345,337,347,386,396,384,361M,394,343,368,340,358,362,378,356,380,388,353,357,338,354,390,355,392,341,342,379,391,352,370,395,349,339,385 | 0 |
1529 | 341,342,379,391,352,370,395,349M,339,385,359,376,371,369,375,344,374,381,363,373,393,360,372,350,377,351,345,337,347,386,396,384,361,394,343,368,340,358,362,378,356,380,388,353,357,338,354,390,355,392 | 0 |
1927 | 353,338,390,379,391,370,349,339,359,369,374,363,350,377,351,345,337,361M,340,358,362,378 | 0 |
1929 | 388,352,338,390,379,391,349,381,339,373,359,369,363M,350,377,345,337 | 0 |
1930 | 356,340,362,354,355,341,388,353,395,376,352,338,375,390,379,391,349,381,339,359,369,363,351,350,361M,377,345,337 | 0 |
1932 | 377,378,345,362M,388,352,338,390,379,391,349,381,384,339,394,359,369,350 | 0 |
1958 | 361M,337,340,377,370,362,360,388,352,338,379,368,349,381,363,339,359,369 | 0 |
1959 | 368,349,381,363,339,350,359,369,361M,337,340,377,370,362,360,352,338,379 | 0 |
1960 | 352,338,379,368,349,381,363,339,378,359,369,361M,337,340,377,370,362,360 | 0 |
1961 | 338,350,379,368,349,381,363,339,378,359,369,361M,337,340,377,370,362,360 | 0 |
1962 | 370,362,360,352,338,350,379,349,381,363,339,359,369,388,361M,390,337,340,377 | 0 |
1964 | 377,370,362,360,338,368,378,379,349,381,363,339,359,369,361M,337,340 | 0 |
1965 | 361M,337,340,377,352,370,362,360,338,368,379,349,381,363,339,359,369 | 0 |
1971 | 363,339,359,369,361M,337,340,377,352,370,362,360,350,338,368,379,349,381 | 0 |