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