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