{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "144.98"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "2.98"
},
"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": 2,
"filtered": "3.24",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (439,394,425,389))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "0.60",
"prefix_cost": "138.42",
"data_read_per_join": "47"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.98",
"eval_cost": "0.60",
"prefix_cost": "142.00",
"data_read_per_join": "47"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
389 | 376,341,386,345,378,354,384,344,343,382,352,338,369,356,371,380,340,373,351,358,375,349,377,353,385,383,342,347,381,355,339,350,357,370,372,337M,379,374 | 0 |
394 | 350,357,370,372,337M,379,374,376,341,386,345,378,354,384,344,343,382,352,338,369,356,371,380,340,373,351,358,375,349,377,353,385,383,342,347,381,355,339 | 0 |
425 | 342,347,355,339,350,357,337M,341,345,354,344,343,352,338,356,340,351,358,349,353 | 0 |
439 | 349,381,353,361,342,370,355,372,379,362,339,374,350,357,376,386,337M,378,363,384,382,341,345,354,369,344,343,352,371,373,338,368,360,375,377,340,385,351,358,359,383 | 0 |