{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "151.88"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "6.12"
},
"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": 6,
"filtered": "6.65",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (388,426,409,404,1936,387,386,416,441,322))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "1.22",
"prefix_cost": "138.42",
"data_read_per_join": "97"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.12",
"eval_cost": "1.22",
"prefix_cost": "145.77",
"data_read_per_join": "97"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
322 | 353,339,357,355,345,350,371,373,369,375,377,342,358,356,352,344,349M,370,354,372,351,374,338,376,341,378 | 0 |
386 | 353,339,343,337M,357,355,345,350,342,340,358,356,347,352,344,349,354,351,338,341 | 0 |
387 | 351,338,341,353,339,343,337M,357,355,345,350,342,340,358,356,347,352,344,349,354 | 0 |
388 | 352,359,383,344,349,361,354,385,351,379,338,341,363,360,386,353,339,343,337M,357,384,355,345,382,350,380,368,362,342,340,358,356,381,347 | 0 |
404 | 342,340,358,356,347,352,344,349,354,351,338,341,353,339,343,337M,357,355,345,350 | 0 |
409 | 342,340,358,356,347,352,344,349,354,351,341,353,339,343,337M,357,355,345,350 | 0 |
416 | 355,393,345,350,394,359,390,361,342,340,358,356,395,352,363,344,349,391,338,360,354,351,341,396,368,392,362,388,353,339,343,337M,357 | 0 |
426 | 378,353,339,343,381,337M,357,355,345,383,350,371,385,379,373,375,342,377,340,358,356,386,352,384,344,349,338,382,354,370,351,372,374,341,376 | 0 |
441 | 368,362,341,353,339,343,381,337M,357,355,345,359,383,350,369,361,347,371,342,340,363,358,360,356,380,352,384,344,349,338,382,354,370,351,372 | 0 |
1936 | 349,338,374,370,388,376,378,362,341,394,390,353,339,381,337,379,345,359,373,350,369,375,361M,377,395,391,386,363,360,356,396,352,384 | 0 |