Query time 0.00161
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 2.912607977,
"filesort": {
"sort_key": "descr1.product, products.product_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"loops": 1,
"rows": 271,
"cost": 0.0575922,
"filtered": 16.97417068,
"attached_condition": "cscart_categories.category_id in (215,1613,1669,1670,1671,1672,1673,1674,1675,1614,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,337,502,503,504,505,506,339,507,508,509,510,658,1660,1661,1662,1663,1664,1665,1666,1667,1668,659,660,661,662) 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') and cscart_categories.storefront_id in (0,1)"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["u508912950_dev_2025.cscart_categories.category_id"],
"loops": 46,
"rows": 23,
"cost": 0.21424142,
"filtered": 100
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "idx_parent_product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u508912950_dev_2025.products_categories.product_id"],
"loops": 1058,
"rows": 1,
"cost": 0.96843592,
"filtered": 54.51009369,
"attached_condition": "products.parent_product_id = 0 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.product_type <> 'D'"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": [
"u508912950_dev_2025.products_categories.product_id",
"const"
],
"loops": 576.7167868,
"rows": 1,
"cost": 0.595300963,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["u508912950_dev_2025.products.company_id"],
"loops": 576.7167868,
"rows": 1,
"cost": 0.516657763,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u508912950_dev_2025.products_categories.product_id"],
"loops": 576.7167868,
"rows": 1,
"cost": 0.560379711,
"filtered": 100,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 15167 |
Beach Straw Cloche Hat |
BP Beauty |
P |
0 |
| 16346 |
Beaded Kiss-Lock Coin Purse |
BP Beauty |
P |
0 |
| 16334 |
Bee Embellished Crossbody Phone Bag |
BP Beauty |
P |
0 |
| 16348 |
Bee Embellished Wallet |
BP Beauty |
P |
0 |
| 15749 |
Black Faux Leather Travel Pouch |
BP Beauty |
P |
0 |
| 14660 |
Black Nylon Drawstring Bucket Bag |
BP Beauty |
P |
0 |
| 14149 |
Blue Plush Sling Bag |
BP Beauty |
P |
0 |
| 14650 |
Blush Wave Zip Wallet |
BP Beauty |
P |
0 |
| 16347 |
Brown Slim Card Holder Wallet |
BP Beauty |
P |
0 |
| 15166 |
Chain Trim Fedora |
BP Beauty |
P |
0 |
| 15732 |
Chain Trim Felt Fedora |
BP Beauty |
P |
0 |
| 14651 |
Classic Wave Zip Wallet – Black & Beige |
BP Beauty |
P |
0 |
| 14656 |
Coveri Green Nylon Backpack |
BP Beauty |
P |
0 |
| 14654 |
Coveri Nylon Women's Backpack |
BP Beauty |
P |
0 |
| 14661 |
Coveri Teal Backpack |
BP Beauty |
P |
0 |
| 15751 |
Distressed Leather Belt Bag |
BP Beauty |
P |
0 |
| 16338 |
Double Zip Crossbody Phone Bag |
BP Beauty |
P |
0 |
| 15108 |
Felt Fedora Hat |
BP Beauty |
P |
0 |
| 15753 |
Flap Zip-Around Wallet |
BP Beauty |
P |
0 |
| 16354 |
Floral Painted Hand Fan |
BP Beauty |
P |
0 |
| 16340 |
Geometric Pattern Flap Phone Pouch |
BP Beauty |
P |
0 |
| 15747 |
Geometric Pattern Pouch Set |
BP Beauty |
P |
0 |
| 16351 |
Leaf Print Wallet |
BP Beauty |
P |
0 |
| 15750 |
Leather Zip-Top Toiletry Bag |
BP Beauty |
P |
0 |