Query time 0.00445
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "56.87"
},
"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": "const",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 226,
"rows_produced_per_join": 226,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.37",
"eval_cost": "22.60",
"prefix_cost": "22.97",
"data_read_per_join": "3K"
},
"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": 11,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.13",
"prefix_cost": "45.57",
"data_read_per_join": "58K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.13",
"prefix_cost": "46.70",
"data_read_per_join": "78K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.13",
"prefix_cost": "47.83",
"data_read_per_join": "51K"
},
"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": 11,
"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": "2.83",
"eval_cost": "1.13",
"prefix_cost": "51.78",
"data_read_per_join": "180"
},
"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": 11,
"filtered": "99.94",
"cost_info": {
"read_cost": "2.83",
"eval_cost": "1.13",
"prefix_cost": "55.74",
"data_read_per_join": "271"
},
"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": [
"const",
"cscart_db.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.13",
"prefix_cost": "56.87",
"data_read_per_join": "180"
},
"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 |
| 28598 |
Strawberry Jam Lip Gloss- 4ml |
Roadskye Tradecom Pvt. Ltd. |
525 |
P |
0 |
0 |
0 |
13 |
| 33669 |
FAE Beauty Rosewood Lip Gloss |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 35529 |
Effortless Glow Lip Oil (001 Red Rose) |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 35531 |
Effortless Glow Lip Oil (003 Berry) |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 38269 |
Glaze Lip Oil Gloss High Shine & Hydrating Clear gloss. - Crystal Milk |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38271 |
Glaze Lip Oil Gloss High Shine & Hydrating Pink Gloss - Candy glaze |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38272 |
Glaze Lip Oil Gloss High Shine & Hydrating Nude Gloss - Sheer Sparkle |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38279 |
Juicy Lip Oli -Soar |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38280 |
Juicy Lip Oli -Wisp |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38281 |
Juicy Lip Oli -Beam |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38282 |
Juicy Lip Oli -Dawn |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38283 |
Juicy Lip Oli -Storm |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38284 |
Juicy Lip Oli -Eve |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38285 |
Juicy Lip Oli -Spark |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38286 |
Juicy Lip Oli -Coast |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38287 |
Juicy Lip Oli -Dune |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38288 |
Juicy Lip Oli -Sail |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38289 |
Juicy Lip Oli -Hold |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 38290 |
Juicy Lip Oli -Bare |
Roadskye Tradecom Pvt. Ltd. |
210 |
P |
0 |
0 |
0 |
13 |
| 39198 |
Crystal Crush Plumping Lip Gloss I Rose Quartz 7ml |
Roadskye Tradecom Pvt. Ltd. |
693 |
P |
0 |
0 |
0 |
13 |
| 64715 |
Peptide Glaws Gloss - Transforming |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 64815 |
RIZZ chill Rizz Liquid Lipstick Glossy Matte, Long Lasting Formula-3.5ml |
Roadskye Tradecom Pvt. Ltd. |
|
P |
0 |
0 |
0 |
13 |
| 64816 |
RIZZ Vibe Rizz Liquid Lipstick Glossy Matte, Long Lasting Formula-3.5ml |
Roadskye Tradecom Pvt. Ltd. |
|
P |
0 |
0 |
0 |
13 |
| 64817 |
RIZZ Bold Rizz Liquid Lipstick Glossy Matte, Long Lasting Formula-3.5ml |
Roadskye Tradecom Pvt. Ltd. |
|
P |
0 |
0 |
0 |
13 |