Query time 0.00231
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 1.446590871,
"filesort": {
"sort_key": "descr1.product, products.product_id",
"temporary_table": {
"filesort": {
"sort_key": "case when products.parent_product_id <> 0 then products.parent_product_id else products.product_id end",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"loops": 1,
"rows": 33,
"cost": 0.0162338,
"filtered": 39.39393997,
"attached_condition": "cscart_categories.category_id in (2,23,24,25,26,27,28,29,30,31,32,33,34) 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": ["u428615623_ecartifygonje.cscart_categories.category_id"],
"loops": 13,
"rows": 27,
"cost": 0.07009101,
"filtered": 100
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "idx_master_product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": [
"u428615623_ecartifygonje.products_categories.product_id"
],
"loops": 351,
"rows": 1,
"cost": 0.32623644,
"filtered": 52.74549103,
"attached_condition": "products.master_product_id = 0 and products.company_id in (2,3,4,7,14,15,21,23,25,26,27,28,30,31,33,34,35,36,37,38,40,72,73,74,78,89,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.master_product_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": ["u428615623_ecartifygonje.products.company_id"],
"loops": 185.1366759,
"rows": 1,
"cost": 0.168051248,
"filtered": 100,
"attached_condition": "trigcond(companies.`status` = 'A' or products.company_id = 0)"
}
},
{
"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": [
"u428615623_ecartifygonje.products_categories.product_id",
"const"
],
"loops": 185.1366759,
"rows": 1,
"cost": 0.177062448,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'fr')"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": [
"u428615623_ecartifygonje.products_categories.product_id"
],
"loops": 185.1366759,
"rows": 1,
"cost": 0.181032166,
"filtered": 99.14893341,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
"using_index": true
}
},
{
"table": {
"table_name": "war_sum_amount",
"access_type": "ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": [
"u428615623_ecartifygonje.products_categories.product_id"
],
"loops": 183.5610447,
"rows": 1,
"cost": 0.177876677,
"filtered": 100
}
},
{
"table": {
"table_name": "warehouses_destination_products_amount",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_storefront_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": [
"product_id",
"destination_id",
"storefront_id"
],
"ref": [
"u428615623_ecartifygonje.products_categories.product_id",
"const",
"const"
],
"loops": 183.5610447,
"rows": 1,
"cost": 0.165003541,
"filtered": 100,
"attached_condition": "trigcond(case products.is_stock_split_by_warehouses when 'Y' then warehouses_destination_products_amount.amount else products.amount end > 0 or products.tracking = 'D')"
}
},
{
"table": {
"table_name": "master_products_storefront_offers_count",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_storefront_id"],
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["product_id", "storefront_id"],
"ref": [
"u428615623_ecartifygonje.products_categories.product_id",
"const"
],
"loops": 183.5610447,
"rows": 1,
"cost": 0.165003541,
"filtered": 100,
"attached_condition": "trigcond(products.company_id > 0 or master_products_storefront_offers_count.count > 0) and trigcond(master_products_storefront_offers_count.product_id = products_categories.product_id)"
}
}
]
}
}
}
}
}
}
Result
| product_id |
product |
company_name |
product_ids |
product_types |
parent_product_ids |
product_type |
parent_product_id |
master_product_offers_count |
master_product_id |
company_id |
original_vendor_id |
need_age_verification |
age_limit |
full_description |
short_description |
| 398 |
Apple |
Grilllite |
398 |
P |
0 |
P |
0 |
0 |
0 |
25 |
0 |
N |
0 |
<p>test</p> |
|
| 500 |
Chin-Chin |
Fulfilment by Gonje |
500 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
|
|
| 146 |
Chin-Chin Box's of 50 (Creamy) |
Fulfilment by Gonje |
146 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
|
|
| 147 |
Chin-Chin Box's of 50 (Fruity) |
Fulfilment by Gonje |
147 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
|
|
| 148 |
Chin-Chin Box's of 50 (Nuts & Seeds) |
Fulfilment by Gonje |
148 |
P |
0 |
P |
0 |
1 |
0 |
4 |
0 |
N |
0 |
|
|
| 759 |
Chin-Chin Box's of 50 (Nuts & Seeds) |
Fulfilment by Gonje |
759 |
P |
0 |
P |
0 |
1 |
0 |
4 |
0 |
N |
0 |
|
|
| 149 |
Chin-Chin Box's of 50 (Relish Spices) |
Fulfilment by Gonje |
149 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
|
|
| 150 |
Chin-Chin Crunchy Chin-Chin (Creamy) |
Fulfilment by Gonje |
150 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
<p>Treat yourself to the rich and creamy flavors of our Chin-Chin, made in Africa's image.</p>
<p><strong>Product contains milk and the specified flavor and a trace amount of vanilla extract, cocoa powder, chocolate, malted barley, brown sugar and cream liqueur for baileys</strong><strong>.</strong></p>
<p>100g per pack</p> |
|
| 151 |
Chin-Chin Crunchy Chin-Chin (Fruity) |
Fulfilment by Gonje |
151 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
<p>Indulge in our fruity Chin-Chin, a delightful snack infused with a medley of vibrant flavours from dried fruits, made in Africa's image.</p>
<p><strong>Product contains the specified fruit and a trace amounts of cranberry, strawberry, apricots, sultanas, lemon, orange, prunes and other dried fruits as contained in fruit mix.</strong> </p>
<p>100g per pack</p> |
|
| 152 |
Chin-Chin Crunchy Chin-Chin (Nuts and Seeds) |
Fulfilment by Gonje |
152 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
<p>This product contains roasted nuts and seeds of various types and flavors that deliver a satisfying crunch with every bite of our Chin-Chin, made in Africa's image.</p>
<p><strong>Product contains specified nuts and may also contain trace amount of peanut, almond, sesame, pistachios, pecans, macadamia, hazelnut and other varieties of nuts as contained in trail mix.</strong></p>
<p>100g per pack</p> |
|
| 153 |
Chin-Chin Crunchy Chin-Chin (Relish Spices) |
Fulfilment by Gonje |
153 |
P |
0 |
P |
0 |
0 |
0 |
4 |
0 |
N |
0 |
<p>Experience the bold and aromatic flavours of our Relish Spices Chin-Chin made in Africa’s image.</p>
<p>Product contains the specified flavour and trace amounts of ginger, nutmeg, cinnamon, chilli pepper, black pepper, onion and suya spice in dried grinded form. </p>
<p>100g per pack<br></p> |
|
| 3 |
Felicios Plantain Chips |
Felicio's |
3 |
P |
0 |
P |
0 |
0 |
0 |
3 |
0 |
N |
0 |
<p>Felicios Plantain Chips: Crispy, savory plantain chips that are perfect for snacking anytime. Enjoy the delicious, natural flavor in every bite!</p> |
|