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