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