Query time 0.00945
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.19"
},
"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": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 7,
"rows_produced_per_join": 0,
"filtered": "4.00",
"index_condition": "(`cscart_db`.`cscart_categories`.`category_id` in (2690,2995,2693,2695,2923,2825,2826))",
"cost_info": {
"read_cost": "4.88",
"eval_cost": "0.03",
"prefix_cost": "4.91",
"data_read_per_join": "801"
},
"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": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"cscart_db.cscart_categories.category_id"
],
"rows_examined_per_scan": 159,
"rows_produced_per_join": 44,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.09",
"eval_cost": "4.48",
"prefix_cost": "9.48",
"data_read_per_join": "716"
},
"used_columns": [
"product_id",
"category_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.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.22",
"prefix_cost": "13.96",
"data_read_per_join": "11K"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.22",
"prefix_cost": "14.18",
"data_read_per_join": "15K"
},
"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_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.22",
"prefix_cost": "14.40",
"data_read_per_join": "10K"
},
"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_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"index_condition": "<if>(is_not_null_compl(cscart_supplier_links), (`cscart_db`.`cscart_supplier_links`.`object_id` = `cscart_db`.`products_categories`.`product_id`), true)",
"cost_info": {
"read_cost": "0.56",
"eval_cost": "0.22",
"prefix_cost": "15.19",
"data_read_per_join": "35"
},
"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_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "99.94",
"cost_info": {
"read_cost": "0.56",
"eval_cost": "0.22",
"prefix_cost": "15.97",
"data_read_per_join": "53"
},
"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": "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.cscart_categories.category_id",
"cscart_db.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.22",
"prefix_cost": "16.19",
"data_read_per_join": "35"
},
"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 |
| 68484 |
Multani Mitti Powder (Earth Fuller) 100gm |
Roadskye Tradecom Pvt. Ltd. |
781 |
P |
0 |
0 |
0 |
13 |
| 69040 |
Reti-A Reedle Shot 100 & 2-step Hydrogel Mask 33gm |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 15963 |
Vitamin C Face Sheet Mask (Skin Repairing & Illuminating) - 20gm |
Roadskye Tradecom Pvt. Ltd. |
334 |
P |
0 |
0 |
0 |
13 |
| 31361 |
Rice Mask Wash Off - 120ml |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 65547 |
Kaolin Purifying Wash Off Mask (110g) |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 66860 |
Rose Hyaluronic Hydra Wash off Pack 125g |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 67741 |
Acne Pimple Patches 36 Dots/Sheet |
Roadskye Tradecom Pvt. Ltd. |
770 |
P |
0 |
0 |
0 |
13 |
| 68024 |
Rich Moist Soothing Tencel Sheet Mask 25ml |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 4350 |
2% Hyaluronic Acid Serum with Bulgarian Rose - 30ml |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 30026 |
Goblin Blackhead 3-Step Nose Pack - 7gm |
Roadskye Tradecom Pvt. Ltd. |
712 |
P |
0 |
0 |
0 |
13 |
| 37836 |
Honey Mask | 120g |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 66857 |
CICA Houttuynia Tea Tree Calming Mask 30ea/400g |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 18025 |
Dr. Belmeur Clarifying Spot Soothing Patches - 80 Patches |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 35203 |
Dead Sea Mud Mask - 50gm |
Roadskye Tradecom Pvt. Ltd. |
291 |
P |
0 |
0 |
0 |
13 |
| 65285 |
Hydro Cera-nol Real Deep Mask 1Box (34g*4ea) |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 66395 |
Strawberry Sugar Food Mask120Ml |
Roadskye Tradecom Pvt. Ltd. |
718 |
P |
0 |
0 |
0 |
13 |
| 66837 |
Natural Moisture Avocado Mask Sheet 23ml |
Roadskye Tradecom Pvt. Ltd. |
765 |
P |
0 |
0 |
0 |
13 |
| 66967 |
Bblite Premium Skin Cream 50ml |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 68483 |
Sandalwood Powder 80gm |
Roadskye Tradecom Pvt. Ltd. |
781 |
P |
0 |
0 |
0 |
13 |
| 69313 |
Madagascar Centella Poremizing Quick Clay Stick Mask 27gm |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 13315 |
Charcoal Peel Off Mask - 50g |
Roadskye Tradecom Pvt. Ltd. |
291 |
P |
0 |
0 |
0 |
13 |
| 15238 |
Birch Please Intense Glow Gel Mask - 50ml |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 17969 |
Real Nature Aloe Face Mask - 20 gm |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 17975 |
Real Nature Blueberry Face Mask 20gm |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |