{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "169.90"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "14.31"
},
"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.55",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (421,427,408,1971,382,418,1959,1930,400,1960,424,1961,1931,381,1529,401,1465,1962,1933,1935,1958,428,415,391))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.86",
"prefix_cost": "138.42",
"data_read_per_join": "228"
},
"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.31",
"eval_cost": "2.86",
"prefix_cost": "155.59",
"data_read_per_join": "228"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
381 | 375,355,350,344,361,343,340,374,376,380,353,360,351,381,342,349,356,339,371,384,362,347,359,385,357,358,386,352,337M,383,370,345,373,379,363,378,354,372,382,341,338 | 0 |
382 | 378,354,372,382,341,338,375,355,377,350,344,343,340,374,376,353,351,381,342,349,356,339,371,384,347,385,357,358,386,352,337M,383,370,345,369,373,379 | 0 |
391 | 337M,345,354,341,338,355,350,344,343,340,353,351,342,349,356,339,347,357,358,352 | 0 |
400 | 347,357,358,352,337M,345,354,341,338,355,350,344,343,340,353,351,342,349,356,339 | 0 |
401 | 351,342,349,339,358,352,337M,345,341,338,344,343,340 | 0 |
408 | 383,370,356,369,373,379,378,351,347,342,349,372,382,339,357,375,377,358,352,337M,380,345,354,374,376,341,338,355,381,350,371,384,385,344,353,343,386,340 | 0 |
415 | 344,353,343,340,356,351,342,349,339,357,358,352,337M,345,354,341,338,355,350 | 0 |
418 | 341,338,355,350,370,344,369,353,343,373,340,378,356,372,375,351,342,349,339,357,377,374,358,376,352,337M,345,354,371,363 | 0 |
421 | 354,363,341,338,355,350,361,390,395,344,394,368,396,353,343,340,360,356,393,362,351,342,349,339,359,357,391,388,358,352,337M,392,345 | 0 |
424 | 358,352,337M,345,354,347,341,338,355,350,344,353,343,340,356,351,342,349,339,357 | 0 |
427 | 342,349,339,357,385,371,386,383,358,352,337M,379,345,354,370,369,382,373,378,347,341,338,355,350,372,375,380,344,377,353,343,340,356,374,381,376,384,351 | 0 |
428 | 356,351,392,342,349,339,357,363,358,352,337M,361,345,354,390,395,394,368,396,347,341,338,355,350,360,393,362,344,359,391,353,343,388,340 | 0 |
1465 | 359,374,381,391,353,343,376,388,340,384,356,385,371,351,386,392,342,349,383,339,357,379,363,370,358,369,382,352,337,373,361M,345,354,378,390,395,372,394,368,396,375,380,347,341,338,355,350,360,377,393,362,344 | 0 |
1529 | 360,377,393,362,344,359,374,381,391,353,343,376,388,340,384,356,385,371,351,386,392,342,349M,339,357,379,363,370,358,369,352,337,373,361,345,354,378,390,395,372,394,368,396,375,380,347,341,338,355,350 | 0 |
1930 | 375,341,338,355,350,377,362,359,381,391,353,376,388,340,356,351,349,339,379,363,369,352,337,361M,345,354,390,395 | 0 |
1931 | 372,369,337,396,361M,345,380,390,395,360,338,350,374,362,359,381,385,391,353,376,388,340,371,342,349,339,379,363 | 0 |
1933 | 394,352,379,363,372,369,337,396,361M,345,390,341,355,360,338,350,374,362,386,359,381,391,376,388,340,370,349,339 | 0 |
1935 | 349,339,394,352,379,393,363,380,395,344,372,369,337,361M,345,384,390,360,338,350,374,362,342,359,381,391,376,388,340 | 0 |
1958 | 340,388,368,349,339,352,377,379,363,369,337,361M,360,338,362,359,370,381 | 0 |
1959 | 362,359,370,381,340,368,349,339,352,377,379,363,369,337,361M,350,360,338 | 0 |
1960 | 338,362,359,370,381,340,368,349,339,352,377,379,363,369,337,361M,360,378 | 0 |
1961 | 361M,360,378,338,362,359,370,381,340,368,349,339,377,379,363,350,369,337 | 0 |
1962 | 379,363,350,369,337,388,361M,360,338,362,390,359,370,381,340,352,349,339,377 | 0 |
1971 | 349,339,377,379,363,350,369,337,361M,360,338,368,362,359,370,381,340,352 | 0 |