Query time 0.00341
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": 127,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (15744,15745,15746,15743,15738,15739,15740,15741,15742,15736,15737,10455,10456,10454,10453,10452,10451,10450,10449,10448,10447,12691,12692,12693,12694,12695,12696,12697,12698,12699,10206,10209,10216,10203,10204,10205,10207,10208,10210,10211,10212,10213,10214,10215,10217,10218,10219,10220,10221,10222)"
},
"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 |
| 10203 |
1637M |
|
| 10204 |
1637M |
|
| 10205 |
1637M |
|
| 10206 |
1637M |
|
| 10207 |
1637M |
|
| 10208 |
1637M |
|
| 10209 |
1637M |
|
| 10210 |
1637M |
|
| 10211 |
1637M |
|
| 10212 |
1637M |
|
| 10213 |
1637M |
|
| 10214 |
1637M |
|
| 10215 |
1637M |
|
| 10216 |
1637M |
|
| 10217 |
1637M |
|
| 10218 |
1637M |
|
| 10219 |
1637M |
|
| 10220 |
1637M |
|
| 10221 |
1637M |
|
| 10222 |
1637M |
|
| 10447 |
1656M |
|
| 10448 |
1656M |
|
| 10449 |
1656M |
|
| 10450 |
1656M |
|
| 10451 |
1656M |
|
| 10452 |
1656M |
|
| 10453 |
1656M |
|
| 10454 |
1656M |
|
| 10455 |
1656M |
|
| 10456 |
1656M |
|
| 12691 |
1656M |
|
| 12692 |
1656M |
|
| 12693 |
1656M |
|
| 12694 |
1656M |
|
| 12695 |
1656M |
|
| 12696 |
1656M |
|
| 12697 |
1656M |
|
| 12698 |
1656M |
|
| 12699 |
1656M |
|
| 15736 |
301,1673M |
|
| 15737 |
301,1673M |
|
| 15738 |
301,1673M |
|
| 15739 |
1673,301M |
|
| 15740 |
301,1673M |
|
| 15741 |
301,1673M |
|
| 15742 |
1673,301M |
|
| 15743 |
301,1673M |
|
| 15744 |
301,1673M |
|
| 15745 |
301,1673M |
|
| 15746 |
301,1673M |
|