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": 32,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (1623,1614,1604,1801,1802,1724,1727,1726,1599,1725,1600,1872,1603,1513,1550,1560,1548,1547,1763,1764,1506,1735,1602,1601,1692,1696,1682,1743,1556,1555,1554,1553)"
},
"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 |
1506 |
13M |
0 |
1513 |
13M |
0 |
1547 |
13M |
0 |
1548 |
13M |
0 |
1550 |
13M |
0 |
1553 |
13M |
0 |
1554 |
13M |
0 |
1555 |
13M |
0 |
1556 |
13M |
0 |
1560 |
13M |
0 |
1599 |
13M |
0 |
1600 |
13M |
0 |
1601 |
13M |
0 |
1602 |
13M |
0 |
1603 |
13M |
0 |
1604 |
13M |
0 |
1614 |
13M |
0 |
1623 |
13M |
0 |
1682 |
13M |
0 |
1692 |
13M |
0 |
1696 |
13M |
0 |
1724 |
13M |
0 |
1725 |
13M |
0 |
1726 |
13M |
0 |
1727 |
13M |
0 |
1735 |
13M |
0 |
1743 |
13M |
0 |
1763 |
13M |
0 |
1764 |
13M |
0 |
1801 |
13M |
0 |
1802 |
13M |
0 |
1872 |
13M |
0 |