Query time 0.00267
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "142.28"
},
"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": 32,
"rows_produced_per_join": 1,
"filtered": "4.00",
"index_condition": "(`cscart_db`.`cscart_categories`.`category_id` in (2743,2992,2919,2993,2994,3014,2991,2934,2744,2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,3006,2926))",
"cost_info": {
"read_cost": "22.28",
"eval_cost": "0.13",
"prefix_cost": "22.41",
"data_read_per_join": "3K"
},
"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": 371,
"rows_produced_per_join": 475,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.05",
"eval_cost": "47.53",
"prefix_cost": "70.99",
"data_read_per_join": "7K"
},
"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": 23,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "2.38",
"prefix_cost": "118.52",
"data_read_per_join": "123K"
},
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "2.38",
"prefix_cost": "120.89",
"data_read_per_join": "165K"
},
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "2.38",
"prefix_cost": "123.27",
"data_read_per_join": "108K"
},
"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": 23,
"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": "5.94",
"eval_cost": "2.38",
"prefix_cost": "131.59",
"data_read_per_join": "380"
},
"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": 23,
"filtered": "99.99",
"cost_info": {
"read_cost": "5.94",
"eval_cost": "2.38",
"prefix_cost": "139.90",
"data_read_per_join": "570"
},
"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": "popularity",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"total"
],
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "2.38",
"prefix_cost": "142.28",
"data_read_per_join": "760"
},
"used_columns": [
"product_id",
"total"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
supplier_id |
product_type |
parent_product_id |
master_product_offers_count |
master_product_id |
company_id |
| 2655 |
Natural Hair Styling Combo with Hair Gel & Hair Cream |
Roadskye Tradecom Pvt. Ltd. |
14 |
P |
0 |
0 |
0 |
13 |
| 2665 |
Hair Fall Control Combo with Onion Oil, Argan Oil & Bhringraj |
Roadskye Tradecom Pvt. Ltd. |
14 |
P |
0 |
0 |
0 |
13 |
| 2661 |
Natural Deep Hydration Combo Therapy with Hydrating Shampoo,Body Wash & Conditioner |
Roadskye Tradecom Pvt. Ltd. |
14 |
P |
0 |
0 |
0 |
13 |
| 34478 |
NeemWood Comb Combo of 3 - Straight - Handle & Pocket Size |
Roadskye Tradecom Pvt. Ltd. |
625 |
P |
0 |
0 |
0 |
13 |
| 2660 |
Natural Daily Therapy Combo With Hydrating Shampoo, Hempocado Oil & Hair Conditioner |
Roadskye Tradecom Pvt. Ltd. |
14 |
P |
0 |
0 |
0 |
13 |
| 2677 |
Hair Styling Combo |
Roadskye Tradecom Pvt. Ltd. |
14 |
P |
0 |
0 |
0 |
13 |
| 18381 |
Kacchi Neem Comb (Wide + Dual Combo) |
Roadskye Tradecom Pvt. Ltd. |
382 |
P |
0 |
0 |
0 |
13 |
| 13130 |
Hair Serum Combo - 100gm |
Roadskye Tradecom Pvt. Ltd. |
291 |
P |
0 |
0 |
0 |
13 |
| 18378 |
Kacchi Neem Comb (Fine + Dual Combo), |
Roadskye Tradecom Pvt. Ltd. |
382 |
P |
0 |
0 |
0 |
13 |
| 64559 |
Detoxie Hard Water Repair Combo | Shampoo 200ml + Conditioner 200ml Each |
Roadskye Tradecom Pvt. Ltd. |
34 |
P |
0 |
0 |
0 |
13 |
| 36989 |
Combo of Onion Hair Fall Shampoo - 250ml & Onion Conditioner - 250ml |
Roadskye Tradecom Pvt. Ltd. |
698 |
P |
0 |
0 |
0 |
13 |
| 34477 |
NeemWood Comb Combo of 2 - Straight & Handle |
Roadskye Tradecom Pvt. Ltd. |
625 |
P |
0 |
0 |
0 |
13 |
| 3694 |
The Nourishing Combo - Shampoo & Conditioner |
Roadskye Tradecom Pvt. Ltd. |
19 |
P |
0 |
0 |
0 |
13 |
| 67911 |
Combo Of Dual Tooth & Wide Tooth Neem Wood Comb | Neem Comb | Pack of 2 |
Roadskye Tradecom Pvt. Ltd. |
773 |
P |
0 |
0 |
0 |
13 |
| 67912 |
Combo Of Dual Tooth & Wide Tooth Neem Wood Comb & Bamboo Paddle Hair Brush | Unisex I Pack of 3 |
Roadskye Tradecom Pvt. Ltd. |
773 |
P |
0 |
0 |
0 |
13 |
| 68693 |
Hair Colour Combo - Henna Powder and Indigo Powder | Natural Hair Dye | 100gm Each |
Roadskye Tradecom Pvt. Ltd. |
380 |
P |
0 |
0 |
0 |
13 |
| 67913 |
Dual Tooth Neem Wood Comb & Bamboo Hair Brush Combo | Hair Comb Set | Unisex | Frizz Control |
Roadskye Tradecom Pvt. Ltd. |
773 |
P |
0 |
0 |
0 |
13 |
| 67914 |
Wide Tooth Neem Wood Comb & Bamboo Hair Brush Combo | Hair Comb Set | Unisex | Frizz Control |
Roadskye Tradecom Pvt. Ltd. |
773 |
P |
0 |
0 |
0 |
13 |
| 68688 |
Neem Wood Comb Combo - Detangling Comb & Shampoo Comb | Set of 2 |
Roadskye Tradecom Pvt. Ltd. |
380 |
P |
0 |
0 |
0 |
13 |
| 68066 |
Hair Comb & Hair Brush Grooming Combo |
Roadskye Tradecom Pvt. Ltd. |
770 |
P |
0 |
0 |
0 |
13 |