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