{
"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,350,372,351,377,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,339,337M,384,373,350,372,386,351,341,379,345,360,354,355,371,362,370,357,380,343,358,342,347,338,381,356,376,382,378,359,385,353,340 | 0 |
382 | 382,378,385,353,340,375,374,349,383,352,369,344,339,337M,384,377,373,350,372,386,351,341,379,345,354,355,371,370,357,343,358,342,347,338,381,356,376 | 0 |
383 | 343,358,342,381,347,338,359,356,376,378,385,353,340,361,363,375,374,349,352,344,339,337M,368,384,377,373,350,360,372,362,386,351,341,345,354,355,371,370,357 | 0 |
393 | 351,341,345,354,355,371,370,357,343,358,382,342,381,347,338,356,376,378,385,353,340,383,375,374,369,349,352,344,339,337M,380,384,377,373,379,350,372,386 | 0 |
394 | 384,377,373,379,350,372,386,351,341,345,354,355,371,370,357,343,358,382,342,381,347,338,356,376,378,385,353,340,383,375,374,369,349,352,344,339,337M,380 | 0 |
396 | 344,339,337M,377,373,350,372,351,341,345,354,355,371,370,357,343,358,342,347,338,356,376,378,353,340,375,374,369,349,352 | 0 |
408 | 369,349,352,380,384,379,344,386,339,337M,377,373,350,372,351,341,382,345,354,381,355,371,370,357,343,358,342,347,338,385,356,383,376,378,353,340,375,374 | 0 |
418 | 353,340,375,374,369,349,352,344,363,339,337M,377,373,350,372,351,341,345,354,355,371,370,357,343,358,342,338,356,376,378 | 0 |
427 | 338,356,376,378,353,340,375,374,380,384,369,379,349,352,386,344,339,337M,377,373,382,350,372,381,351,341,345,354,347,355,371,385,370,383,357,343,358,342 | 0 |
439 | 355,371,385,370,383,357,343,358,342,338,359,376,378,353,340,375,361,374,384,369,379,349,352,386,363,344,339,337M,377,373,382,350,372,368,381,360,362,351,341,345,354 | 0 |
1465 | 381,390,347,394,360,362,351,341,345,354,355,371,385,356,370,383,388,357,343,358,342,338,359,376,392,378,380,395,353,340,375,361M,374,384,369,379,349,352,393,386,363,391,396,344,339,337,377,373,382,350,372,368 | 0 |
1529 | 344,339,337,377,373,350,372,368,381,390,347,394,360,362,351,341,345,354,355,371,385,356,370,388,357,343,358,342,338,359,376,392,378,380,395,353,340,375,361,374,384,369,379,349M,352,393,386,363,391,396 | 0 |
1927 | 363,391,339,337,377,350,390,362,351,345,370,358,338,359,378,353,340,361M,374,369,379,349 | 0 |
1933 | 352,386,361M,374,369,379,396,349,363,391,372,381,394,360,339,337,341,350,390,355,388,362,345,370,376,338,359,340 | 0 |
1958 | 359,340,352,361M,369,379,349,368,363,377,381,360,339,337,388,362,370,338 | 0 |
1959 | 338,359,340,352,361M,369,379,349,368,363,377,350,381,360,339,337,362,370 | 0 |
1960 | 362,370,338,359,340,352,361M,369,379,349,368,363,377,381,360,339,337,378 | 0 |
1961 | 339,337,378,362,370,338,359,340,361M,369,379,350,349,368,363,377,381,360 | 0 |
1962 | 363,377,381,360,339,337,362,370,338,390,352,359,340,388,361M,369,379,350,349 | 0 |
1964 | 361M,369,379,349,363,377,378,381,360,339,337,362,370,338,359,340,368 | 0 |
1965 | 340,368,361M,369,379,349,363,377,381,360,339,337,362,370,352,338,359 | 0 |
1969 | 338,350,359,340,368,361M,369,379,349,363,381,360,339,337,362,370,352 | 0 |
1971 | 370,352,338,350,359,340,368,361M,377,369,379,349,363,381,360,339,337,362 | 0 |