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