Query time 0.00170
JSON explain
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 139,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (12995,12996,12997,12998,15744,15745,15746,15743,15738,15739,15740,15741,15742,15736,15737,12999,13000,13001,13002,13003,13004,13005,13006,13007,13008,13009,13010,13011,13012,12969,13013,13014,13015,13016,13017,13018,13019,13020,13021,13022,13023,13024,13025,13026,13027,13028,13029,13030,13031,13032,13033,13034,13035,13036,13037,13038,13039,13040,13041,13042,13043,13044)"
},
"table": {
"table_name": "product_position_source",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["category_id", "product_id"],
"ref": [
"const",
"noframes_angrybeaver.cscart_products_categories.product_id"
],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["noframes_angrybeaver.cscart_products_categories.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_categories.storefront_id in (0,1) and (cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H')"
}
}
}
Result
| product_id |
category_ids |
position |
| 12969 |
301,1151M |
0 |
| 12995 |
1684,301M |
0 |
| 12996 |
1684,301M |
0 |
| 12997 |
1684,301M |
0 |
| 12998 |
1684,301M |
0 |
| 12999 |
1682,301M |
0 |
| 13000 |
1682,301M |
0 |
| 13001 |
1682,301M |
0 |
| 13002 |
1682,301M |
0 |
| 13003 |
1682,301M |
0 |
| 13004 |
1682,301M |
0 |
| 13005 |
1682,301M |
0 |
| 13006 |
1682,301M |
0 |
| 13007 |
1682,301M |
0 |
| 13008 |
1682,301M |
0 |
| 13009 |
1682,301M |
0 |
| 13010 |
1682,301M |
0 |
| 13011 |
1682,301M |
0 |
| 13012 |
1682,301M |
0 |
| 13013 |
301,1683M |
0 |
| 13014 |
1683,301M |
0 |
| 13015 |
301,1683M |
0 |
| 13016 |
301,1683M |
0 |
| 13017 |
301,1683M |
0 |
| 13018 |
301,1683M |
0 |
| 13019 |
301,1683M |
0 |
| 13020 |
301,1683M |
0 |
| 13021 |
301,1683M |
0 |
| 13022 |
301,1683M |
0 |
| 13023 |
301,1683M |
0 |
| 13024 |
301,1683M |
0 |
| 13025 |
301,1683M |
0 |
| 13026 |
301,1683M |
0 |
| 13027 |
301,1683M |
0 |
| 13028 |
1683,301M |
0 |
| 13029 |
301,1683M |
0 |
| 13030 |
301,1683M |
0 |
| 13031 |
313,301M |
0 |
| 13032 |
313,301M |
0 |
| 13033 |
313,301M |
0 |
| 13034 |
313,301M |
0 |
| 13035 |
313,301M |
0 |
| 13036 |
313,301M |
0 |
| 13037 |
313,301M |
0 |
| 13038 |
313,301M |
0 |
| 13039 |
313,301M |
0 |
| 13040 |
313,301M |
0 |
| 13041 |
313,301M |
0 |
| 13042 |
313,301M |
0 |
| 13043 |
313,301M |
0 |
| 13044 |
313,301M |
0 |
| 15736 |
301,1673M |
0 |
| 15737 |
301,1673M |
0 |
| 15738 |
301,1673M |
0 |
| 15739 |
1673,301M |
0 |
| 15740 |
301,1673M |
0 |
| 15741 |
301,1673M |
0 |
| 15742 |
1673,301M |
0 |
| 15743 |
301,1673M |
0 |
| 15744 |
301,1673M |
0 |
| 15745 |
301,1673M |
0 |
| 15746 |
301,1673M |
0 |