{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "152.23"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "6.28"
},
"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.82",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (1937,414,389,426,442,1936,326,322))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "1.26",
"prefix_cost": "138.42",
"data_read_per_join": "100"
},
"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.28",
"eval_cost": "1.26",
"prefix_cost": "145.95",
"data_read_per_join": "100"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
322 | 338,354,377,373,342,341,376,372,371,353,370,352,375,350,345,339,349M,351,369,378,374,356,358,344,355,357 | 0 |
326 | 378,374,382,356,358,381,388,355,361,357,386,354,391,396,359,377,373,394,385,384,360,380,376,372,379,389,371,353,392,363,370,390,352,395,375,383,350,349M,368,362,351,369,393 | 0 |
389 | 349,351,344,369,338,378,374,382,356,358,381,355,357,386,354,342,377,373,341,385,384,380,347,340,376,372,379,371,353,343,345,370,352,339,375,337M,383,350 | 0 |
414 | 345,370,352,339,368,362,375,337M,350,349,351,344,369,361,338,378,374,356,359,358,355,357,354,342,377,373,341,360,340,376,372,363,371,353,343 | 0 |
426 | 371,353,383,343,345,370,352,339,375,337M,350,382,349,351,381,344,386,338,378,374,356,358,355,357,354,385,342,377,373,384,341,379,340,376,372 | 0 |
442 | 363,376,372,368,362,371,383,370,375,369,361,382,359M,381,386,378,374,360,380,385,377,373,384,379 | 0 |
1936 | 377,373,384,379,363,388,353,376,345,391,352,339,396,362,337,394,350,370,349,375,369,361M,338,356,359,381,386,378,374,390,395,341,360 | 0 |
1937 | 390,395,341,360,393,340,377,373,384,343,372,379,363,368,371,388,353,376,345,391,352,339,396,362,351,344,337,394,350,370,382,349,358,375,355,369,361M,357,347,338,354,392,356,342,359,381,380,386,378,374,385 | 0 |