{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "156.57"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "8.25"
},
"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": 8,
"filtered": "8.97",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (414,407,402,1972,388,1974,442,1936,416,326,441,1957))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "1.65",
"prefix_cost": "138.42",
"data_read_per_join": "131"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.25",
"eval_cost": "1.65",
"prefix_cost": "148.32",
"data_read_per_join": "131"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
326 | 362,352,374,368,390,388,361,357,382,393,358,372,351,386,349M,378,375,396,370,392,395,373,385,350,354,379,384,353,376,369,381,391,355,394,359,389,363,371,356,383,360,377,380 | 0 |
388 | 341,359,363,339,338,343,356,344,342,383,360,380,362,352,368,361,357,382,345,358,351,386,347,349,340,337M,385,350,354,379,384,353,381,355 | 0 |
402 | 350,354,353,355,341,359,390,363,339,338,343,356,388,344,342,360,362,352,368,393,361,357,345,396,358,351,347,349,392,340,395,337M,391,394 | 0 |
407 | 379,384,337M,381,391,394,350,354,353,383,355,380,341,359,390,363,339,338,343,356,388,344,342,360,362,352,368,382,393,361,386,357,345,396,358,351,347,349,392,340,395,385 | 0 |
414 | 371,340,377,374,337M,350,354,353,372,355,341,359,363,339,338,343,378,356,375,344,342,360,362,352,368,370,361,357,373,345,358,351,376,369,349 | 0 |
416 | 345,358,392,351,395,349,340,391,394,337M,390,350,354,353,388,355,341,359,363,339,338,343,393,356,344,342,360,362,352,368,396,361,357 | 0 |
441 | 361,369,357,345,358,371,384,351,381,349,340,383,380,337M,372,382,350,354,353,355,341,359,363,339,338,343,370,356,344,342,360,362,352,347,368 | 0 |
442 | 360,376,362,368,385,379,361,369,377,374,371,384,381,383,380,378,375,372,386,382,359M,373,363,370 | 0 |
1936 | 356,396,352,359,373,363,370,360,376,395,362,345,379,361M,369,349,391,377,394,374,384,381,390,337,388,350,378,353,375,386,341,339,338 | 0 |
1957 | 339,338,352,359,368,363,370,360,362,379,361M,340,369,349,331,377,381,337 | 0 |
1972 | 337,339,338,352,359,368,363,370,360,362,379,361M,340,369,349,381,350 | 0 |
1974 | 381,350,337,339,338,352,359,368,363,370,360,362,379,361M,340,369,349 | 0 |