Query time 0.00094
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "11.15"
},
"ordering_operation": {
"using_filesort": false,
"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": "variation_group_products",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`variation_group_products`.`group_id` in (428,429,430,435,376))",
"cost_info": {
"read_cost": "6.86",
"eval_cost": "1.60",
"prefix_cost": "8.46",
"data_read_per_join": "256"
},
"used_columns": [
"product_id",
"group_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.variation_group_products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.08",
"prefix_cost": "10.06",
"data_read_per_join": "4K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"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`.`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": "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.variation_group_products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.08",
"prefix_cost": "10.14",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.08",
"prefix_cost": "10.22",
"data_read_per_join": "5K"
},
"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": "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.variation_group_products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"index_condition": "<if>(is_not_null_compl(cscart_supplier_links), (`cscart_db`.`cscart_supplier_links`.`object_id` = `cscart_db`.`variation_group_products`.`product_id`), true)",
"cost_info": {
"read_cost": "0.20",
"eval_cost": "0.08",
"prefix_cost": "10.50",
"data_read_per_join": "12"
},
"used_columns": [
"supplier_id",
"object_id",
"object_type"
]
}
},
{
"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.variation_group_products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.48",
"eval_cost": "0.09",
"prefix_cost": "11.07",
"data_read_per_join": "14"
},
"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": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.00",
"prefix_cost": "11.15",
"data_read_per_join": "127"
},
"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)))"
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
supplier_id |
variation_group_id |
product_type |
parent_product_id |
master_product_offers_count |
master_product_id |
company_id |
| 6868 |
10 |
Everyday Protein - 400 gm (Pack of 1) |
Roadskye Tradecom Pvt. Ltd. |
252 |
376 |
P |
0 |
0 |
0 |
13 |
| 6734 |
100 |
Premium Whole Cashew W240-Grade, 200g (Pack of 2, 100g each) | Gluten Free & Plant Protein | Imported from Ivory Coast |
Roadskye Tradecom Pvt. Ltd. |
42 |
428 |
P |
0 |
0 |
0 |
13 |
| 6740 |
100 |
Premium Iranian Pistachios, 300g (Pack of 2. 150g Each) | Rich in Protein and Dietary Fibre |
Roadskye Tradecom Pvt. Ltd. |
42 |
428 |
P |
0 |
0 |
0 |
13 |
| 6735 |
95 |
Premium Whole Cashew W240-Grade, 300g (Pack of 2, 150g each) | Gluten Free & Plant Protein | Imported from Ivory Coast |
Roadskye Tradecom Pvt. Ltd. |
42 |
428 |
P |
0 |
0 |
0 |
13 |
| 6739 |
100 |
Premium Iranian Pistachios, 200g (Pack of 2. 100g Each) | Rich in Protein and Dietary Fibre |
Roadskye Tradecom Pvt. Ltd. |
42 |
428 |
P |
0 |
0 |
0 |
13 |
| 6741 |
76 |
Choco Hazelnut Spread, 250g | Sugarfree | Vegan | Keto & Diabetes Friendly |
Roadskye Tradecom Pvt. Ltd. |
42 |
429 |
P |
0 |
0 |
0 |
13 |
| 6742 |
85 |
Choco Hazelnut Spread, 500g | Sugarfree | Vegan | Keto & Diabetes Friendly |
Roadskye Tradecom Pvt. Ltd. |
42 |
429 |
P |
0 |
0 |
0 |
13 |
| 6743 |
99 |
Medjoul Date Powder, 180g | 100% Natural Sweetner | Vegan & Keto |
Roadskye Tradecom Pvt. Ltd. |
42 |
430 |
P |
0 |
0 |
0 |
13 |
| 6744 |
100 |
Medjoul Date Powder, 300g | 100% Natural Sweetner | Vegan & Keto |
Roadskye Tradecom Pvt. Ltd. |
42 |
430 |
P |
0 |
0 |
0 |
13 |
| 6750 |
100 |
Spiced Okra Chips - Vacuum Fried (Pack of 3) 20g each |
Roadskye Tradecom Pvt. Ltd. |
698 |
435 |
P |
0 |
0 |
0 |
13 |
| 6752 |
100 |
Gourmet Crispy Sweet Corn (Pack of 3) 20 Gm each |
Roadskye Tradecom Pvt. Ltd. |
42 |
435 |
P |
0 |
0 |
0 |
13 |