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