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