Query time 0.00159
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.22"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "master_products_storefront_offers_count",
"access_type": "system",
"possible_keys": [
"PRIMARY",
"idx_storefront_id"
],
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "16"
},
"used_columns": [
"storefront_id",
"product_id",
"count"
]
}
},
{
"table": {
"table_name": "variation_group_products",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 25,
"rows_produced_per_join": 25,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`variation_group_products`.`group_id` in (386,611,613,632))",
"cost_info": {
"read_cost": "9.76",
"eval_cost": "2.50",
"prefix_cost": "12.26",
"data_read_per_join": "400"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id",
"idx_master_product_id",
"youtube_link"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.variation_group_products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.13",
"prefix_cost": "14.76",
"data_read_per_join": "6K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"parent_product_id",
"master_product_id",
"master_product_status",
"master_product_offers_count"
],
"attached_condition": "((`cscart_db`.`products`.`master_product_id` = 0) and (`cscart_db`.`products`.`company_id` in (13,0)) and ((`cscart_db`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscart_db`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscart_db`.`products`.`usergroup_ids`))) and (`cscart_db`.`products`.`status` = 'A') and (`cscart_db`.`products`.`master_product_status` = 'A') and ((`cscart_db`.`products`.`company_id` > 0) or <cache>((NULL > 0))))"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.variation_group_products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.13",
"prefix_cost": "14.89",
"data_read_per_join": "5K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"cscart_db.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.13",
"prefix_cost": "15.01",
"data_read_per_join": "8K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "<if>(found_match(companies), ((`cscart_db`.`companies`.`status` = 'A') or (`cscart_db`.`products`.`company_id` = 0)), true)"
}
},
{
"table": {
"table_name": "cscart_supplier_links",
"access_type": "ref",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type"
],
"key_length": "7",
"ref": [
"cscart_db.variation_group_products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"index_condition": "<if>(is_not_null_compl(cscart_supplier_links), (`cscart_db`.`cscart_supplier_links`.`object_id` = `cscart_db`.`variation_group_products`.`product_id`), true)",
"cost_info": {
"read_cost": "0.31",
"eval_cost": "0.13",
"prefix_cost": "15.45",
"data_read_per_join": "20"
},
"used_columns": [
"supplier_id",
"object_id",
"object_type"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.variation_group_products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.51",
"eval_cost": "0.13",
"prefix_cost": "16.09",
"data_read_per_join": "21"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"cscart_db.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.01",
"prefix_cost": "16.22",
"data_read_per_join": "191"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "(((`cscart_db`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscart_db`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscart_db`.`cscart_categories`.`usergroup_ids`))) and (`cscart_db`.`cscart_categories`.`status` in ('A','H')) and (`cscart_db`.`cscart_categories`.`storefront_id` in (0,1)))"
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
supplier_id |
variation_group_id |
product_type |
parent_product_id |
master_product_offers_count |
master_product_id |
company_id |
| 9102 |
745 |
Grandma's Kadha - Ayurvedic Tea- 15 Tabs |
Roadskye Tradecom Pvt. Ltd. |
96 |
386 |
P |
0 |
0 |
0 |
13 |
| 9103 |
0 |
Grandma's Kadha - Ayurvedic Tea - 30 Tabs |
Roadskye Tradecom Pvt. Ltd. |
96 |
386 |
P |
0 |
0 |
0 |
13 |
| 9104 |
0 |
Grandma's Kadha- Ayurvedic Tea - 60 Tabs |
Roadskye Tradecom Pvt. Ltd. |
96 |
386 |
P |
0 |
0 |
0 |
13 |
| 9105 |
0 |
Grandma's Kadha- Ayurvedic Tea - 90 Tabs |
Roadskye Tradecom Pvt. Ltd. |
96 |
386 |
P |
0 |
0 |
0 |
13 |
| 17249 |
100 |
Peppermint Hot Chocolate Mix - 100gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
611 |
P |
0 |
0 |
0 |
13 |
| 17250 |
87 |
Hazelnut Hot Chocolate Mix - 100gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
611 |
P |
0 |
0 |
0 |
13 |
| 17248 |
92 |
Caramel Hot Chocolate Mix - 100gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
611 |
P |
0 |
0 |
0 |
13 |
| 17246 |
100 |
Mexican Spiced Hot Chocolate Mix - 100gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
611 |
P |
0 |
0 |
0 |
13 |
| 17247 |
91 |
Mocha Hot Chocolate Mix - 100gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
611 |
P |
0 |
0 |
0 |
13 |
| 17245 |
92 |
Swiss Vanilla Hot Chocolate Mix - 100gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
611 |
P |
0 |
0 |
0 |
13 |
| 17261 |
98 |
Mocha Sugar-Free Drinking Chocolate Mix - 200gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
613 |
P |
0 |
0 |
0 |
13 |
| 17260 |
100 |
Caramel Sugar-Free Drinking Chocolate Mix - 200gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
613 |
P |
0 |
0 |
0 |
13 |
| 17259 |
100 |
Mexican Spiced Sugar-Free Drinking Chocolate Mix - 200gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
613 |
P |
0 |
0 |
0 |
13 |
| 17258 |
100 |
Swiss Vanilla Sugar-Free Drinking Chocolate Mix - 200gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
613 |
P |
0 |
0 |
0 |
13 |
| 17263 |
100 |
Hazelnut Sugar-Free Drinking Chocolate Mix - 200gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
613 |
P |
0 |
0 |
0 |
13 |
| 17262 |
100 |
Peppermint Sugar-Free Drinking Chocolate Mix - 200gm |
Roadskye Tradecom Pvt. Ltd. |
370 |
613 |
P |
0 |
0 |
0 |
13 |
| 20987 |
100 |
Orange Sparkling Water - Pack of 12 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20985 |
100 |
Lemon-Lime Sparkling Water - Pack of 24 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20986 |
99 |
Orange Sparkling Water - Pack of 24 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20978 |
83 |
Assorted Flavours - Pack of 12 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20979 |
98 |
Assorted Flavours - Pack of 24 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20980 |
99 |
Peach Sparkling Water - Pack of 12 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20981 |
99 |
Peach Sparkling Water - Pack of 24 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20982 |
99 |
Cranberry Sparkling Water - Pack of 12 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20983 |
100 |
Cranberry Sparkling Water - Pack of 24 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |
| 20984 |
98 |
Lemon-Lime Sparkling Water - Pack of 12 (350ml Each) |
Roadskye Tradecom Pvt. Ltd. |
412 |
632 |
P |
0 |
0 |
0 |
13 |