Query time 0.01560
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "86.69"
},
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"link_type",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 96,
"rows_produced_per_join": 96,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "9.89",
"eval_cost": "9.60",
"prefix_cost": "19.49",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
],
"attached_condition": "(`nuie_scalesta_net`.`cscart_products_categories`.`product_id` in (93920,93921,93922,93923,93924,93925,93926,93927,93928,93929,93930,93931,93932,93933,93934,93935,93936,93937,93938,93939,93940,93941,93942,93943,93944,93945,93946,93947,93948,93949,93950,93951,93952,93953,93954,93955,93956,93957,93958,93959,93960,93961,93962,93963,93964,93965,93966,93967,93968,93969,93970,93971,93972,93973,93974,93975,93976,93977,93978,93979,93980,93981,93982,93983,93984,93985,93986,93987,93988,93989,93990,93991,93992,93993,93994,93995,93996,93997,93998,93999,94000,94001,94002,94003,94004,94005,94006,94007,94008,94009,94010,94011,94012,94013,94014,94015))"
}
},
{
"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",
"nuie_scalesta_net.cscart_products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 96,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "9.60",
"prefix_cost": "53.09",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.cscart_products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "5.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "0.48",
"prefix_cost": "86.69",
"data_read_per_join": "12K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)) and ((`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`nuie_scalesta_net`.`cscart_categories`.`status` in ('A','H')))"
}
}
]
}
}
}
Result
| product_id |
category_ids |
position |
| 93920 |
7168M |
|
| 93921 |
7168M |
|
| 93922 |
7168M |
|
| 93923 |
7168M |
|
| 93924 |
7168M |
|
| 93925 |
7168M |
|
| 93926 |
7168M |
|
| 93927 |
7168M |
|
| 93928 |
7175M |
|
| 93929 |
7175M |
|
| 93930 |
7175M |
|
| 93931 |
7175M |
|
| 93932 |
7175M |
|
| 93933 |
7175M |
|
| 93934 |
7175M |
|
| 93935 |
7175M |
|
| 93936 |
7175M |
|
| 93937 |
7168M |
|
| 93938 |
7168M |
|
| 93939 |
7168M |
|
| 93940 |
7168M |
|
| 93941 |
7168M |
|
| 93942 |
7179M |
|
| 93943 |
7179M |
|
| 93944 |
7179M |
|
| 93945 |
7179M |
|
| 93946 |
7179M |
|
| 93947 |
7179M |
|
| 93948 |
7168M |
|
| 93949 |
7168M |
|
| 93950 |
7168M |
|
| 93951 |
7176M |
|
| 93952 |
7176M |
|
| 93953 |
7176M |
|
| 93954 |
7176M |
|
| 93955 |
7176M |
|
| 93956 |
7176M |
|
| 93957 |
7177M |
|
| 93958 |
7177M |
|
| 93959 |
7177M |
|
| 93960 |
7168M |
|
| 93961 |
7168M |
|
| 93962 |
7168M |
|
| 93963 |
7177M |
|
| 93964 |
7177M |
|
| 93965 |
7177M |
|
| 93966 |
7177M |
|
| 93967 |
7177M |
|
| 93968 |
7177M |
|
| 93969 |
7168M |
|
| 93970 |
7168M |
|
| 93971 |
7168M |
|
| 93972 |
7168M |
|
| 93973 |
7168M |
|
| 93974 |
7168M |
|
| 93975 |
7168M |
|
| 93976 |
7168M |
|
| 93977 |
7168M |
|
| 93978 |
7168M |
|
| 93979 |
7168M |
|
| 93980 |
7168M |
|
| 93981 |
7168M |
|
| 93982 |
7168M |
|
| 93983 |
7168M |
|
| 93984 |
7168M |
|
| 93985 |
7168M |
|
| 93986 |
7168M |
|
| 93987 |
7168M |
|
| 93988 |
7168M |
|
| 93989 |
7168M |
|
| 93990 |
7168M |
|
| 93991 |
7168M |
|
| 93992 |
7168M |
|
| 93993 |
7168M |
|
| 93994 |
7168M |
|
| 93995 |
7168M |
|
| 93996 |
7168M |
|
| 93997 |
7168M |
|
| 93998 |
7168M |
|
| 93999 |
7168M |
|
| 94000 |
7168M |
|
| 94001 |
7168M |
|
| 94002 |
7168M |
|
| 94003 |
7168M |
|
| 94004 |
7168M |
|
| 94005 |
7168M |
|
| 94006 |
7168M |
|
| 94007 |
7168M |
|
| 94008 |
7168M |
|
| 94009 |
7168M |
|
| 94010 |
7168M |
|
| 94011 |
7168M |
|
| 94012 |
7173M |
|
| 94013 |
7168M |
|
| 94014 |
7168M |
|
| 94015 |
7168M |
|