{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "168.77"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "13.79"
},
"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": "14.99",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (391,406,329,439,390,1969,393,394,1929,396,397,398,399,422,1964,434,383,412,1927,419,430,324,1965,1966))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.76",
"prefix_cost": "138.42",
"data_read_per_join": "220"
},
"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.79",
"eval_cost": "2.76",
"prefix_cost": "154.98",
"data_read_per_join": "220"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
324 | 358,351,361,362,395,363,357,368,352,353,388,394,338M,356,349,393,390,359,355,391,350,340,392,360,354,396 | 0 |
329 | 372,354,358,351,339,377,357,352,353,338,369,356,342,349M,374,355,375,370,373,350,376,371,378 | 0 |
383 | 360,345,355,375,370,384,373,350,376,371,378,337M,372,354,381,341,361,362,358,363,343,351,339,377,368,357,386,352,353,344,338,385,347,356,359,342,349,340,374 | 0 |
390 | 347,356,359,342,349,396,340,360,345,355,350,337M,395,354,341,361,362,358,363,343,351,339,388,394,368,357,393,390,352,353,344,338,391,392 | 0 |
391 | 353,344,338,347,356,342,349,340,345,355,350,337M,354,341,358,343,351,339,357,352 | 0 |
393 | 352,374,353,344,338,375,370,379,384,373,376,371,378,347,356,372,342,349,381,383,340,345,355,377,350,337M,354,341,369,380,386,358,382,343,351,339,357,385 | 0 |
394 | 351,339,357,385,352,374,353,344,338,375,370,379,384,373,376,371,378,347,356,372,342,349,381,383,340,345,355,377,350,337M,354,341,369,380,386,358,382,343 | 0 |
396 | 354,341,369,358,343,351,339,357,352,374,353,344,338,375,370,373,376,371,378,347,356,372,342,349,340,345,355,377,350,337M | 0 |
397 | 350,337M,354,341,358,343,351,339,357,352,353,344,338,347,356,342,349,340,345,355 | 0 |
398 | 342,349,391,340,345,355,392,350,359,337M,396,360,354,389,341,358,343,351,339,395,361,357,362,363,388,394,352,353,368,344,338,393,347,356,390 | 0 |
399 | 347,356,342,349,340,345,355,350,337M,354,341,358,343,351,339,357,352,353,344,338 | 0 |
406 | 352,393,353,390,344,338,391,347,356,392,342,349,359,340,396,345,355,360,350,337M,354,395,341,358,361,343,362,351,339,363,388,394,357,368 | 0 |
412 | 357,352,353,344,338,347,356,342,349,340,345,355,350,337M,354,341,358,343,351,339 | 0 |
419 | 388,394,358,343,351,339,368,357,393,390,391,352,353,344,338,392,389,359,356,396,342,349,360,340,345,355,395,350,337M,361,362,354,363,341 | 0 |
422 | 337M,354,341,358,343,351,339,357,352,353,344,338,356,342,349,340,345,355,350 | 0 |
430 | 340,345,355,350,337M,354,341,358,343,351,339,357,352,353,344,338,356,342,349 | 0 |
434 | 356,361,380,386,362,342,349,382,363,340,345,355,368,350,385,337M,354,341,358,379,384,343,351,347,339,359,357,381,383,360,352,353,344,338 | 0 |
439 | 352,377,353,344,338,361,369,386,362,342,349,382,363,340,345,355,368,350,385,337M,354,341,374,358,375,370,379,384,343,373,351,339,376,371,378,372,359,357,381,383,360 | 0 |
1927 | 377,353,338,361M,369,362,349,390,363,340,391,345,350,337,374,358,370,379,351,339,378,359 | 0 |
1929 | 381,339,359,352,388,377,338,369,349,390,363M,391,345,350,337,373,379 | 0 |
1964 | 378,360,379,381,339,359,377,361M,338,362,368,340,369,349,363,337,370 | 0 |
1965 | 337,370,360,379,352,381,339,359,377,361M,338,362,368,340,369,349,363 | 0 |
1966 | 369,349,363,337,370,360,379,352,381,339,359,377,361M,338,362,368,340 | 0 |
1969 | 361M,338,362,368,340,369,349,363,337,370,360,379,352,381,339,359,350 | 0 |