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