Query time 0.00202
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": 64,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (12995,12996,12997,12998,10713,10714,10715,10716,10717,10718,10719,10720,10721,10722,10723,10305,10306,10307,10308,10309,10310,10311,10312,12999,13000,13001,13002,13003,13004,13005,13006,13007,13008,13009,13010,13011,13012,9874,9875,9887,9879,9796,9942,9943,9941,9944,10813,10814,10815,10816,10817,10818,10819,10820,10821,10822,10823,10824,10825,10826,10704,10705,10706,10707)"
},
"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 |
| 9796 |
1672M |
|
| 9874 |
1672M |
|
| 9875 |
1672M |
|
| 9879 |
1672M |
|
| 9887 |
1672M |
|
| 9941 |
1672M |
|
| 9942 |
1672M |
|
| 9943 |
1672M |
|
| 9944 |
1672M |
|
| 10305 |
1647M |
|
| 10306 |
1647M |
|
| 10307 |
1647M |
|
| 10308 |
1647M |
|
| 10309 |
1647M |
|
| 10310 |
1647M |
|
| 10311 |
1647M |
|
| 10312 |
1647M |
|
| 10704 |
1662M |
|
| 10705 |
1662M |
|
| 10706 |
1662M |
|
| 10707 |
1662M |
|
| 10713 |
1663M |
|
| 10714 |
1663M |
|
| 10715 |
1663M |
|
| 10716 |
1663M |
|
| 10717 |
1663M |
|
| 10718 |
1663M |
|
| 10719 |
1663M |
|
| 10720 |
1663M |
|
| 10721 |
1663M |
|
| 10722 |
1663M |
|
| 10723 |
1663M |
|
| 10813 |
1672M |
|
| 10814 |
1672M |
|
| 10815 |
1672M |
|
| 10816 |
1672M |
|
| 10817 |
1672M |
|
| 10818 |
1672M |
|
| 10819 |
1672M |
|
| 10820 |
1672M |
|
| 10821 |
1672M |
|
| 10822 |
1672M |
|
| 10823 |
1672M |
|
| 10824 |
1672M |
|
| 10825 |
1672M |
|
| 10826 |
1672M |
|
| 12995 |
1684,301M |
|
| 12996 |
1684,301M |
|
| 12997 |
1684,301M |
|
| 12998 |
1684,301M |
|
| 12999 |
1682,301M |
|
| 13000 |
1682,301M |
|
| 13001 |
1682,301M |
|
| 13002 |
1682,301M |
|
| 13003 |
1682,301M |
|
| 13004 |
1682,301M |
|
| 13005 |
1682,301M |
|
| 13006 |
1682,301M |
|
| 13007 |
1682,301M |
|
| 13008 |
1682,301M |
|
| 13009 |
1682,301M |
|
| 13010 |
1682,301M |
|
| 13011 |
1682,301M |
|
| 13012 |
1682,301M |
|