Query time 0.00574
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "443.17"
},
"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": "range",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"rows_examined_per_scan": 373,
"rows_produced_per_join": 373,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "38.91",
"eval_cost": "37.30",
"prefix_cost": "76.21",
"data_read_per_join": "5K"
},
"used_columns": [
"product_id",
"category_id"
],
"attached_condition": "((`cscart_db`.`products_categories`.`category_id` = 2641) and (`cscart_db`.`products_categories`.`product_id` <> 23529))"
}
},
{
"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": 18,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.87",
"prefix_cost": "113.51",
"data_read_per_join": "96K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"list_price",
"amount",
"usergroup_ids",
"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`.`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))) 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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.87",
"prefix_cost": "115.38",
"data_read_per_join": "129K"
},
"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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.87",
"prefix_cost": "117.24",
"data_read_per_join": "85K"
},
"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": 18,
"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": "4.66",
"eval_cost": "1.87",
"prefix_cost": "123.77",
"data_read_per_join": "298"
},
"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": 5,
"filtered": "29.99",
"cost_info": {
"read_cost": "4.66",
"eval_cost": "0.56",
"prefix_cost": "130.30",
"data_read_per_join": "134"
},
"used_columns": [
"product_id",
"price",
"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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.56",
"prefix_cost": "130.86",
"data_read_per_join": "89"
},
"used_columns": [
"category_id",
"product_id",
"amount"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id"
],
"key_length": "6",
"ref": [
"cscart_db.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 5,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.09",
"eval_cost": "0.57",
"prefix_cost": "135.52",
"data_read_per_join": "4K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
},
{
"table": {
"table_name": "pvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.57",
"prefix_cost": "136.10",
"data_read_per_join": "43K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
},
{
"table": {
"table_name": "prpd",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.products_categories.product_id"
],
"rows_examined_per_scan": 153,
"rows_produced_per_join": 879,
"filtered": "100.00",
"cost_info": {
"read_cost": "219.11",
"eval_cost": "87.97",
"prefix_cost": "443.17",
"data_read_per_join": "13K"
},
"used_columns": [
"product_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 |
| 32074 |
440.00 |
220.00 |
18 |
Cold Pressed Groundnut Oil - 1L |
Roadskye Tradecom Pvt. Ltd. |
592 |
P |
0 |
0 |
0 |
13 |
|
|
Healthy Fibres |
| 32076 |
599.00 |
299.50 |
20 |
Cold Pressed Sesame Oil - 1L |
Roadskye Tradecom Pvt. Ltd. |
592 |
P |
0 |
0 |
0 |
13 |
|
|
Healthy Fibres |
| 32072 |
699.00 |
349.50 |
19 |
Cold Pressed Coconut Oil - 1L |
Roadskye Tradecom Pvt. Ltd. |
592 |
P |
0 |
0 |
0 |
13 |
|
|
Healthy Fibres |
| 12403 |
980.00 |
784.00 |
70 |
Gramiyaa Cold Pressed Groundnut Oil 2 Litre |
Roadskye Tradecom Pvt. Ltd. |
272 |
P |
0 |
0 |
0 |
13 |
4.91 |
22 |
Gramiyaa |
| 12402 |
490.00 |
392.00 |
66 |
Gramiyaa Cold Pressed Groundnut Oil 1 Litre |
Roadskye Tradecom Pvt. Ltd. |
272 |
P |
0 |
0 |
0 |
13 |
4.78 |
9 |
Gramiyaa |
| 21293 |
475.00 |
332.50 |
56 |
Wood Cold Pressed Groudnut/Peanut Cooking Oil - 1L |
Roadskye Tradecom Pvt. Ltd. |
417 |
P |
0 |
0 |
0 |
13 |
4.33 |
3 |
anveshan |
| 21294 |
2375.00 |
1662.50 |
72 |
Wood Cold Pressed Groudnut/Peanut Cooking Oil - 5L |
Roadskye Tradecom Pvt. Ltd. |
417 |
P |
0 |
0 |
0 |
13 |
4.50 |
2 |
anveshan |
| 12399 |
850.00 |
680.00 |
72 |
Gramiyaa Cold Pressed Coconut Oil 1 Litre |
Roadskye Tradecom Pvt. Ltd. |
272 |
P |
0 |
0 |
0 |
13 |
4.71 |
7 |
Gramiyaa |