{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "145.24"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "3.10"
},
"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": 3,
"filtered": "3.37",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (1971,1969,1965,1966,1968,1963,1970,1972,1957))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "0.62",
"prefix_cost": "138.42",
"data_read_per_join": "49"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.10",
"eval_cost": "0.62",
"prefix_cost": "142.14",
"data_read_per_join": "49"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
1957 | 337,340,381,361M,369,359,352,349,338,362,368,339,379,370,377,360,331,363 | 0 |
1963 | 377,360,363,337,340,381,361M,369,359,352,388,349,338,362,378,350,339,379,370 | 0 |
1965 | 339,379,370,377,360,363,337,340,381,361M,369,359,352,368,349,338,362 | 0 |
1966 | 362,339,379,370,377,360,363,337,340,381,361M,369,359,352,368,349,338 | 0 |
1968 | 349,338,362,339,379,370,360,363,337,340,381,361M,369,350,359,352 | 0 |
1969 | 350,359,368,352,349,338,362,339,379,370,360,363,337,340,381,361M,369 | 0 |
1970 | 337,340,381,361M,369,350,359,368,352,349,338,362,377,339,379,370,360,363 | 0 |
1971 | 363,337,340,381,361M,369,350,359,368,352,349,338,362,377,339,379,370,360 | 0 |
1972 | 370,360,363,337,340,381,361M,369,350,359,368,352,349,338,362,339,379 | 0 |