{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "171.42"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "15.00"
},
"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": 14,
"filtered": "16.30",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (427,408,1971,382,418,1959,1960,1961,381,1529,1465,1962,1933,1958,329,439,1969,393,394,396,1964,383,1927,1965))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "3.00",
"prefix_cost": "138.42",
"data_read_per_join": "239"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.00",
"eval_cost": "3.00",
"prefix_cost": "156.42",
"data_read_per_join": "239"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
329 | 339,373,369,372,350,377,351,354,355,371,370,357,358,342,338,356,376,378,353,375,374,349M,352 | 0 |
381 | 375,374,349,383,361,363,352,344,337M,339,373,384,372,350,386,379,351,341,360,354,345,355,371,370,362,357,380,343,358,342,338,381,347,356,376,378,382,359,385,353,340 | 0 |
382 | 378,382,385,353,340,375,374,349,383,352,369,344,337M,339,377,373,384,372,350,386,379,351,341,354,345,355,371,370,357,343,358,342,338,381,347,356,376 | 0 |
383 | 343,358,342,338,359,381,347,356,376,378,385,353,340,361,363,375,374,349,352,344,337M,368,339,377,373,384,360,372,350,362,386,351,341,354,345,355,371,370,357 | 0 |
393 | 341,351,354,345,355,371,370,357,343,358,342,382,338,381,347,356,376,378,385,353,340,383,375,374,369,349,352,344,337M,380,339,377,373,379,384,372,350,386 | 0 |
394 | 377,373,379,384,372,350,386,341,351,354,345,355,371,370,357,343,358,342,382,338,381,347,356,376,378,385,353,340,383,375,374,369,349,352,344,337M,380,339 | 0 |
396 | 344,337M,339,377,373,372,350,341,351,354,345,355,371,370,357,343,358,342,338,347,356,376,378,353,340,375,374,369,349,352 | 0 |
408 | 369,349,352,380,379,384,344,337M,386,339,377,373,372,350,341,351,354,382,345,355,371,381,370,357,343,358,342,338,347,356,385,376,383,378,353,340,375,374 | 0 |
418 | 353,340,375,374,369,349,352,344,337M,363,339,377,373,372,350,341,351,354,345,355,371,370,357,343,358,342,338,356,376,378 | 0 |
427 | 338,356,376,378,353,340,375,374,380,369,379,384,349,352,386,344,337M,339,377,373,372,382,350,381,341,351,354,345,355,371,347,370,385,357,383,343,358,342 | 0 |
439 | 355,371,370,385,357,383,343,358,342,338,359,376,378,353,340,375,374,361,369,379,384,349,352,386,363,344,337M,339,377,373,372,368,382,350,381,360,341,362,351,354,345 | 0 |
1465 | 381,390,347,360,394,341,362,351,354,345,355,371,356,370,385,357,383,388,343,358,342,338,359,376,392,378,380,395,353,340,375,374,361M,369,379,384,349,352,393,386,363,391,396,344,337,339,377,373,372,368,382,350 | 0 |
1529 | 344,337,339,377,373,372,368,350,381,390,347,360,394,341,362,351,354,345,355,371,356,370,385,357,388,343,358,342,338,359,376,392,378,380,395,353,340,375,374,361,369,379,384,349M,352,393,386,363,391,396 | 0 |
1927 | 363,391,337,339,377,350,390,362,351,345,370,358,338,359,378,353,340,374,361M,369,379,349 | 0 |
1933 | 352,374,386,361M,369,379,349,396,363,391,372,381,360,394,337,339,341,350,355,390,388,362,345,370,376,338,359,340 | 0 |
1958 | 359,340,352,361M,369,379,349,368,363,377,381,360,337,339,388,362,370,338 | 0 |
1959 | 338,359,340,352,361M,369,379,349,368,363,377,350,381,360,337,339,362,370 | 0 |
1960 | 362,370,338,359,340,352,361M,369,379,349,368,363,377,381,360,337,339,378 | 0 |
1961 | 337,339,378,362,370,338,359,340,361M,369,379,349,368,350,363,377,381,360 | 0 |
1962 | 363,377,381,360,337,339,362,370,338,359,390,352,340,388,361M,369,379,349,350 | 0 |
1964 | 361M,369,379,349,363,377,378,381,360,337,339,362,370,338,359,368,340 | 0 |
1965 | 368,340,361M,369,379,349,363,377,381,360,337,339,362,370,352,338,359 | 0 |
1969 | 338,350,359,368,340,361M,369,379,349,363,381,360,337,339,362,370,352 | 0 |
1971 | 370,352,338,350,359,368,340,361M,377,369,379,349,363,381,360,337,339,362 | 0 |