Query time 0.00393
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "111.14"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"variant_id",
"product_id",
"fpl",
"idx_product_feature_variant_id",
"fl"
],
"key": "variant_id",
"used_key_parts": [
"variant_id",
"feature_id",
"product_id"
],
"key_length": "9",
"rows_examined_per_scan": 132,
"rows_produced_per_join": 132,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "14.49",
"eval_cost": "13.20",
"prefix_cost": "27.69",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "(((`cscart_db`.`pfv`.`variant_id` = 19048) and (`cscart_db`.`pfv`.`feature_id` = 62) and (`cscart_db`.`pfv`.`product_id` <> 6876)) and (`cscart_db`.`pfv`.`product_id` is not null))"
}
},
{
"table": {
"table_name": "pvd",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 132,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.39",
"eval_cost": "13.20",
"prefix_cost": "41.28",
"data_read_per_join": "987K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id",
"idx_product_prices_usergroup_limit",
"idx_prices_discount_lookup",
"idx_prices_min_calc",
"idx_prices_usergroup_lookup",
"idx_prices_usergroup_product"
],
"key": "idx_prices_discount_lookup",
"used_key_parts": [
"product_id",
"lower_limit"
],
"key_length": "6",
"ref": [
"cscart_db.pfv.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "20.00",
"using_index": true,
"cost_info": {
"read_cost": "40.98",
"eval_cost": "2.64",
"prefix_cost": "95.46",
"data_read_per_join": "633"
},
"used_columns": [
"product_id",
"price",
"lower_limit",
"usergroup_id"
],
"attached_condition": "(`cscart_db`.`prices`.`usergroup_id` in (0,1))"
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id",
"idx_master_product_id",
"youtube_link",
"idx_products_parent_lookup",
"idx_products_status_company",
"idx_products_master_status",
"idx_products_inventory",
"idx_products_status_company_master",
"idx_products_main_query",
"idx_products_query_opt",
"idx_products_composite_query",
"idx_kl_qc_enabled"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.pfv.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "8.34",
"eval_cost": "0.13",
"prefix_cost": "106.44",
"data_read_per_join": "6K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"list_price",
"amount",
"tracking",
"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`.`status` = 'A') and (`cscart_db`.`products`.`master_product_status` = 'A') and ((`cscart_db`.`products`.`amount` > 0) or (`cscart_db`.`products`.`tracking` = 'D')))"
}
},
{
"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.33",
"eval_cost": "0.13",
"prefix_cost": "106.90",
"data_read_per_join": "9K"
},
"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": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt",
"idx_product_category_lookup",
"idx_products_categories_composite"
],
"key": "idx_products_categories_composite",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.pfv.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.50",
"eval_cost": "0.15",
"prefix_cost": "107.56",
"data_read_per_join": "24"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"p_category_id",
"idx_categories_storefront_status",
"idx_categories_usergroup_status",
"idx_categories_status_id_path"
],
"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": 1,
"filtered": "81.96",
"cost_info": {
"read_cost": "0.38",
"eval_cost": "0.12",
"prefix_cost": "108.09",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"status",
"storefront_id"
],
"attached_condition": "((`cscart_db`.`cscart_categories`.`status` in ('A','H')) and (`cscart_db`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "cscart_supplier_links",
"access_type": "ref",
"possible_keys": [
"object_id",
"idx_supplier_product_lookup",
"idx_supplier_products"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type"
],
"key_length": "7",
"ref": [
"cscart_db.pfv.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.55",
"eval_cost": "0.12",
"prefix_cost": "108.77",
"data_read_per_join": "19"
},
"used_columns": [
"supplier_id",
"object_id",
"object_type"
],
"attached_condition": "<if>(is_not_null_compl(cscart_supplier_links), (`cscart_db`.`cscart_supplier_links`.`object_id` = `cscart_db`.`pfv`.`product_id`), true)"
}
},
{
"table": {
"table_name": "master_products_storefront_offers_count",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"idx_storefront_id",
"idx_storefront_product_count"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"storefront_id"
],
"key_length": "8",
"ref": [
"cscart_db.pfv.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.27",
"eval_cost": "0.12",
"prefix_cost": "109.16",
"data_read_per_join": "19"
},
"used_columns": [
"storefront_id",
"product_id",
"count"
],
"attached_condition": "(<if>(found_match(master_products_storefront_offers_count), ((`cscart_db`.`products`.`company_id` > 0) or (`cscart_db`.`master_products_storefront_offers_count`.`count` > 0)), true) and <if>(is_not_null_compl(master_products_storefront_offers_count), (`cscart_db`.`master_products_storefront_offers_count`.`product_id` = `cscart_db`.`pfv`.`product_id`), true))"
}
},
{
"table": {
"table_name": "cscart_product_sales",
"access_type": "ref",
"possible_keys": [
"idx_product_sales_category_amount"
],
"key": "idx_product_sales_category_amount",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"ref": [
"cscart_db.products_categories.category_id",
"cscart_db.pfv.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.31",
"eval_cost": "0.12",
"prefix_cost": "109.60",
"data_read_per_join": "19"
},
"used_columns": [
"category_id",
"product_id",
"amount"
]
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id",
"idx_product_desc_lang",
"idx_product_name_search",
"idx_product_desc_sort"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.pfv.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.74",
"eval_cost": "0.12",
"prefix_cost": "110.47",
"data_read_per_join": "5K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "prpd",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.pfv.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.42",
"eval_cost": "0.25",
"prefix_cost": "111.14",
"data_read_per_join": "39"
},
"used_columns": [
"product_id",
"storefront_id",
"average_rating",
"reviews_count"
]
}
}
]
}
}
}
}
Result
| product_id |
list_price |
price |
amount |
product |
company_name |
supplier_id |
product_type |
parent_product_id |
master_product_offers_count |
master_product_id |
company_id |
average_rating |
reviews_count |
brand_name |
| 9126 |
1799.00 |
1619.10 |
996 |
Pure Korean Marine Collagen Peptides - Unflavoured - 200 gm |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
4.70 |
23 |
Wellbeing Nutrition |
| 65070 |
3999.00 |
3599.10 |
1326 |
Whey Protein Isolate + Concentrate (Cappuccino) | 24g Protein, 12g EAA, 5.8g BCAA | Clinically Proven 2x Muscle Protein Synthesis| 4B CFU Probiotics & Digestive Enzymes | 1kg |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
5.00 |
2 |
Wellbeing Nutrition |
| 9760 |
1399.00 |
1259.10 |
1645 |
Slow Multi + Omega for Her Multivitamin capsule for Women - 60 Capsules |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
3.50 |
2 |
Wellbeing Nutrition |
| 9765 |
1399.00 |
1259.10 |
163 |
Burn with Capsimax™, Garcinia, Chromium & Liquid L-Carnitine | 60 Veg Caps |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
5.00 |
2 |
Wellbeing Nutrition |
| 9116 |
599.00 |
599.00 |
1182 |
Natural Vitamin D3 + K2 Melts - 30 Oral Strips |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
5.00 |
1 |
Wellbeing Nutrition |
| 10370 |
1999.00 |
1799.00 |
186 |
Beauty Korean Marine Collagen Peptides - Mango Peach Flavor | 250 gm |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
4.86 |
7 |
Wellbeing Nutrition |
| 9766 |
1399.00 |
1259.10 |
169 |
Slow Hair Skin & Nails | Collagen Glutathione - 60 Capsules |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
4.50 |
4 |
Wellbeing Nutrition |
| 9759 |
1399.00 |
1259.10 |
620 |
Slow | Multivitamin for Him - 60 Capsules |
Roadskye Tradecom Pvt. Ltd. |
96 |
P |
0 |
0 |
0 |
13 |
5.00 |
3 |
Wellbeing Nutrition |