{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "159.91"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "9.77"
},
"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": 9,
"filtered": "10.62",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (434,383,412,1927,419,430,324,1965,1966,431,432,1928,1973,429,1968,384,1963,1934,2000,395))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "1.95",
"prefix_cost": "138.42",
"data_read_per_join": "156"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.77",
"eval_cost": "1.95",
"prefix_cost": "150.15",
"data_read_per_join": "156"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
324 | 391,394,361,362,392,360,388,352,358,363,353,351,349,396,357,368,393,356,338M,395,340,355,350,359,354,390 | 0 |
383 | 342,376,350,359,354,384,375,344,361,345,372,362,347,378,360,374,381,352,341,358,363,353,351,385,371,343,349,357,368,370,337M,356,338,386,340,377,339,355,373 | 0 |
384 | 337M,356,338,340,339,355,342,350,354,344,345,347,352,341,358,353,351,343,349,357 | 0 |
395 | 357,337M,356,338,340,339,355,342,350,354,344,345,347,352,341,358,353,351,343,349 | 0 |
412 | 353,351,343,349,357,337M,356,338,340,339,355,342,350,354,344,345,347,352,341,358 | 0 |
419 | 352,341,358,390,353,351,359,391,343,394,349,392,357,388,361,362,337M,356,338,360,340,339,355,342,363,396,350,354,393,389,344,368,395,345 | 0 |
429 | 344,345,352,341,358,353,351,343,349,357,337M,356,338,340,339,355,342,350,354 | 0 |
430 | 350,354,344,345,352,341,358,353,351,343,349,357,337M,356,338,340,339,355,342 | 0 |
431 | 368,395,339,355,342,350,354,390,344,345,359,391,394,392,352,388,341,358,361,362,353,351,360,343,349,363,357,396,337M,356,393,338 | 0 |
432 | 340,337M,356,338,339,355,342,350,354,344,345,352,341,358,353,351,343,349,347,357 | 0 |
434 | 343,386,349,347,357,340,368,380,337M,356,384,338,339,355,342,350,354,359,381,344,345,385,361,362,382,352,360,379,341,358,353,383,363,351 | 0 |
1927 | 358,353,377,363,351,369,349,340,337,338,390,378,374,339,391,350,359,345,361M,370,362,379 | 0 |
1928 | 345,361M,370,362,379,395,369,349,338,390,378,374,339,381,391,350,359 | 0 |
1934 | 359,373,345,358,361M,370,362,377,363,379,395,356,384,372,369,340,349,355,342,337,394,354,338,390,344,374,339,381,391,350,352,360,396 | 0 |
1963 | 339,381,350,352,360,359,361M,370,362,377,363,379,369,340,388,349,337,378,338 | 0 |
1965 | 338,339,381,352,360,359,368,361M,370,362,377,363,379,369,340,349,337 | 0 |
1966 | 349,337,338,339,381,352,360,359,368,361M,370,362,377,363,379,369,340 | 0 |
1968 | 369,340,349,337,350,338,339,381,352,360,359,361M,370,362,363,379 | 0 |
1973 | 361M,370,362,363,379,369,340,349,337,338,339,381,368,352,360,359,377 | 0 |
2000 | 391,396M,362,363,369,349,338,390 | 0 |