Query time 0.00193
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": 52,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (710,706,1760,1844,1689,1754,1755,1840,1756,1753,1792,1791,1793,1789,1472,1716,1714,1715,1720,1719,1722,1713,1718,1717,1867,1721,1145,1891,1202,247,296,1218,1765,820,1816,1651,1661,255,65,1959,1011,1685,1207,1210,1203,1389,1188,1190)"
},
"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": ["bacpvdev_db.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')"
},
"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", "bacpvdev_db.cscart_products_categories.product_id"],
"rows": 1,
"filtered": 100
}
}
}
Result
product_id |
category_ids |
position |
65 |
12M |
|
247 |
24M |
|
255 |
13M |
|
296 |
24M |
|
706 |
24M |
|
710 |
24M |
|
820 |
24M |
|
1011 |
12M |
|
1145 |
24M |
|
1188 |
35M |
|
1190 |
35M |
|
1202 |
24M |
|
1203 |
35M |
|
1207 |
35M |
|
1210 |
35M |
|
1218 |
25M |
|
1389 |
35M |
|
1472 |
24M |
|
1651 |
13M |
|
1661 |
13M |
|
1685 |
35M |
|
1689 |
24M |
|
1713 |
35M |
|
1714 |
35M |
|
1715 |
35M |
|
1716 |
35M |
|
1717 |
35M |
|
1718 |
35M |
|
1719 |
35M |
|
1720 |
35M |
|
1721 |
35M |
|
1722 |
35M |
|
1753 |
24M |
|
1754 |
24M |
|
1755 |
24M |
|
1756 |
24M |
|
1760 |
24M |
|
1765 |
24M |
|
1789 |
35M |
|
1791 |
35M |
|
1792 |
35M |
|
1793 |
35M |
|
1816 |
24M |
|
1840 |
24M |
|
1844 |
24M |
|
1867 |
35M |
|
1891 |
25M |
|
1959 |
12M |
|