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