{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "169.90"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "14.31"
},
"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": 14,
"filtered": "15.55",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (421,427,408,1971,382,418,1959,1930,400,1960,424,1961,1931,381,1529,401,1465,1962,1933,1935,1958,428,415,391))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.86",
"prefix_cost": "138.42",
"data_read_per_join": "228"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.31",
"eval_cost": "2.86",
"prefix_cost": "155.59",
"data_read_per_join": "228"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
381 | 375,350,344,355,361,340,343,374,376,353,380,351,360,381,339,342,349,356,362,371,384,347,359,385,357,352,358,386,337M,383,345,370,363,373,379,378,354,372,382,341,338 | 0 |
382 | 378,354,372,382,341,338,375,350,344,355,377,340,343,374,376,353,351,381,339,342,349,356,371,384,347,385,357,352,358,386,337M,383,345,370,369,373,379 | 0 |
391 | 337M,345,354,341,338,350,344,355,340,343,353,351,339,342,349,356,347,357,352,358 | 0 |
400 | 347,357,352,358,337M,345,354,341,338,350,344,355,340,343,353,351,339,342,349,356 | 0 |
401 | 351,339,342,349,352,358,337M,345,341,338,344,340,343 | 0 |
408 | 383,370,356,369,373,379,351,347,378,339,342,349,372,382,357,375,377,352,358,337M,380,345,354,374,376,350,341,338,355,381,371,384,344,385,353,340,343,386 | 0 |
415 | 344,353,340,343,356,351,339,342,349,357,352,358,337M,345,354,350,341,338,355 | 0 |
418 | 350,341,338,355,344,370,369,353,340,343,373,378,356,372,351,375,339,342,349,357,377,374,352,358,376,337M,345,354,371,363 | 0 |
421 | 354,363,350,341,338,355,361,390,395,344,394,353,368,396,340,343,360,356,393,362,351,339,342,349,359,357,391,388,352,358,337M,345,392 | 0 |
424 | 352,358,337M,345,354,347,350,341,338,355,344,353,340,343,356,351,339,342,349,357 | 0 |
427 | 339,342,349,357,385,371,386,383,352,358,337M,345,379,354,370,369,382,373,347,378,350,341,338,355,372,375,380,344,353,377,340,343,356,374,381,376,351,384 | 0 |
428 | 356,351,392,339,342,349,357,363,352,358,337M,361,345,354,390,395,394,368,396,347,350,341,338,355,360,393,362,344,353,359,391,340,343,388 | 0 |
1465 | 353,359,374,381,391,340,343,376,388,384,356,385,351,371,386,392,339,342,349,383,357,363,379,370,352,358,369,382,337,361M,345,373,354,378,390,395,372,394,368,396,347,375,380,350,341,338,355,360,377,393,362,344 | 0 |
1529 | 360,377,393,362,344,353,359,374,381,391,340,343,376,388,384,356,385,351,371,386,392,339,342,349M,357,363,379,370,352,358,369,337,361,345,373,354,378,390,395,372,394,368,396,347,375,380,350,341,338,355 | 0 |
1930 | 375,350,341,338,355,377,362,353,359,381,391,340,376,388,356,351,339,349,363,379,352,369,337,361M,345,354,390,395 | 0 |
1931 | 372,369,337,396,361M,345,380,390,395,360,350,338,374,362,353,359,381,385,391,340,376,388,371,342,339,349,363,379 | 0 |
1933 | 352,394,363,379,372,369,337,396,361M,345,390,341,355,360,350,338,374,362,386,359,381,391,340,376,388,370,339,349 | 0 |
1935 | 339,349,352,394,363,379,393,380,395,344,372,369,337,361M,345,384,390,360,350,338,374,362,342,359,381,391,340,376,388 | 0 |
1958 | 340,388,368,339,349,352,377,363,379,369,337,361M,360,338,362,359,370,381 | 0 |
1959 | 362,359,370,381,340,368,339,349,352,377,363,379,369,337,361M,350,360,338 | 0 |
1960 | 338,362,359,370,381,340,368,339,349,352,377,363,379,369,337,361M,360,378 | 0 |
1961 | 361M,360,378,338,362,359,370,381,340,368,339,349,377,363,379,350,369,337 | 0 |
1962 | 363,379,350,369,337,361M,388,360,338,362,390,359,370,381,340,352,339,349,377 | 0 |
1971 | 339,349,377,363,379,350,369,337,361M,360,338,362,368,359,370,381,340,352 | 0 |