Query time 0.08822
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 1568.698833,
"filesort": {
"sort_key": "products.`timestamp` desc, 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": 99,
"cost": 0.0269918,
"filtered": 100,
"attached_condition": "(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": ["u985510652_ecartify.cscart_categories.category_id"],
"loops": 99,
"rows": 4107,
"cost": 66.77361603,
"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": ["u985510652_ecartify.products_categories.product_id"],
"loops": 406593,
"rows": 1,
"cost": 367.7379133,
"filtered": 100,
"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": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["u985510652_ecartify.products.company_id"],
"loops": 406593,
"rows": 1,
"cost": 363.6746813,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
}
},
{
"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": [
"u985510652_ecartify.products_categories.product_id",
"const"
],
"loops": 406593,
"rows": 1,
"cost": 377.2734013,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
}
},
{
"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": ["u985510652_ecartify.products_categories.product_id"],
"loops": 406593,
"rows": 1,
"cost": 393.2122292,
"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 |
| 460958 |
resell product Test |
CS-Cart |
P |
0 |
| 460957 |
resell product |
CS-Cart |
P |
0 |
| 460955 |
Apple iPhone 15 (128 GB) - Blue [CLONE] |
CS-Cart |
P |
0 |
| 460952 |
Mi Smart Watch घड़ी [CLONE] |
CS-Cart |
P |
0 |
| 460951 |
BIBA Women Cotton Anarkali Kurta Palazzo Suit Set [CLONE] |
CS-Cart |
P |
0 |
| 460948 |
Premium Wireless Noise-Cancelling Headphones |
CS-Cart |
P |
0 |
| 460947 |
Apple® - iPad® with Retina® display Wi-Fi - 64GB - Black [CLONE] |
CS-Cart |
P |
0 |
| 460946 |
Allen Solly Men's Cotton Regular Fit Polo T-Shirt [CLONE] |
CS-Cart |
P |
0 |
| 460918 |
Pro Router 777 |
AutoZone |
P |
0 |
| 460921 |
Ultra Camera 719 |
AutoZone |
P |
0 |
| 460936 |
Smart Book 218 |
ACME Corp |
P |
0 |
| 460804 |
Lite Headphones 265 |
AutoZone |
P |
0 |