Query time 0.18349
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "707.15"
},
"ordering_operation": {
"using_filesort": true,
"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": "products",
"access_type": "index_merge",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id",
"idx_master_product_id",
"youtube_link"
],
"key": "intersect(status,idx_parent_product_id,idx_master_product_id)",
"key_length": "3,4,4",
"rows_examined_per_scan": 2295,
"rows_produced_per_join": 45,
"filtered": "2.00",
"cost_info": {
"read_cost": "623.88",
"eval_cost": "4.59",
"prefix_cost": "628.47",
"data_read_per_join": "238K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"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`.`parent_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": "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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "4.59",
"prefix_cost": "633.06",
"data_read_per_join": "319K"
},
"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": "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.products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "4.59",
"prefix_cost": "637.65",
"data_read_per_join": "209K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"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.products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 45,
"filtered": "100.00",
"index_condition": "<if>(is_not_null_compl(cscart_supplier_links), (`cscart_db`.`cscart_supplier_links`.`object_id` = `cscart_db`.`products`.`product_id`), true)",
"cost_info": {
"read_cost": "11.48",
"eval_cost": "4.59",
"prefix_cost": "653.71",
"data_read_per_join": "734"
},
"used_columns": [
"supplier_id",
"object_id",
"object_type"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id",
"idx_product_prices_usergroup_limit"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 45,
"filtered": "99.99",
"cost_info": {
"read_cost": "11.48",
"eval_cost": "4.59",
"prefix_cost": "669.78",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`cscart_db`.`prices`.`lower_limit` = 1) and (`cscart_db`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"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.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 51,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "26.88",
"eval_cost": "5.12",
"prefix_cost": "701.77",
"data_read_per_join": "819"
},
"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": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.26",
"prefix_cost": "706.89",
"data_read_per_join": "7K"
},
"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)))"
}
},
{
"table": {
"table_name": "cscart_product_sales",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"pa"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"ref": [
"cscart_db.products_categories.category_id",
"cscart_db.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.26",
"prefix_cost": "707.15",
"data_read_per_join": "40"
},
"used_columns": [
"category_id",
"product_id",
"amount"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
supplier_id |
product_type |
parent_product_id |
master_product_offers_count |
master_product_id |
company_id |
| 26250 |
Micropoint Spot Patch - Pack Size: 9 each |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 26336 |
Iron Rich Organic Jaggery Powder - 500gm |
Roadskye Tradecom Pvt. Ltd. |
254 |
P |
0 |
0 |
0 |
13 |
| 26340 |
Premium California Almonds - Pack of 2 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26341 |
Premium California Almonds - Pack of 4 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26342 |
Premium Cashews - Pack of 2 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26343 |
Premium Cashews - Pack of 4 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26344 |
Premium Pistachios - Pack of 2 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26345 |
Premium Pistachios - Pack of 4 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26346 |
Premium Seedless Raisins - Pack of 4 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26347 |
Indian Spice Raisins - Pack of 2 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26348 |
Premium Walnuts - Pack of 2 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26349 |
Premium Walnuts - Pack of 3 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26350 |
Premium Walnuts - Pack of 4 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26351 |
Premium Figs/Anjeer - Pack of 2 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26352 |
Premium Figs/Anjeer - Pack of 3 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26353 |
Premium Figs/Anjeer - Pack of 4 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26354 |
Daily Health Mix - Nuts And Seeds - Pack of 2 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26355 |
Daily Seed Mix- Roasted Exotic Mix - Pack of 2 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26356 |
Roasted Almonds - Pack of 2 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26357 |
Indian Spice Cashews - Pack of 2 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26358 |
Roasted Cashew - Pack of 2 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26360 |
Indian Spice Cashew And Roasted Salted Cashew - Pack of 2 - 250gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26362 |
California Almonds, Cashews, Pistachios - Pack of 3 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |
| 26363 |
California Almonds & Indian Spice Raisins Combo - Pack of 2 - 200gm each |
Roadskye Tradecom Pvt. Ltd. |
493 |
P |
0 |
0 |
0 |
13 |