Query time 0.12498
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "239.18"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 10,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "1.46",
"eval_cost": "0.10",
"prefix_cost": "1.56",
"data_read_per_join": "6K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`companies`.`status` = 'A')"
}
},
{
"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": 51,
"rows_produced_per_join": 2,
"filtered": "4.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`category_id` in (372,435,459,462,560,453,454,467,549,556,582,593,463,461,455,460,550,557,561,573,594,384,465,551,574,583,584,598,487,575,592,595,434,572,576,596,599,466,579,597,548,580,552,581,566,464,587,654,655,666,669))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "35.51",
"eval_cost": "0.20",
"prefix_cost": "37.27",
"data_read_per_join": "6K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`status` in ('A','H')) and (`softwarepirmam_hewadelivard_cscart_4`.`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": [
"softwarepirmam_hewadelivard_cscart_4.cscart_categories.category_id"
],
"rows_examined_per_scan": 194,
"rows_produced_per_join": 395,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.97",
"eval_cost": "39.58",
"prefix_cost": "79.82",
"data_read_per_join": "6K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "5.00",
"cost_info": {
"read_cost": "98.94",
"eval_cost": "1.98",
"prefix_cost": "218.34",
"data_read_per_join": "87K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`products`.`company_id` = `softwarepirmam_hewadelivard_cscart_4`.`companies`.`company_id`) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`parent_product_id` = 0) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`amount` > 0) or (`softwarepirmam_hewadelivard_cscart_4`.`products`.`tracking` = 'D')) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`product_type` <> 'D'))"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "99.93",
"cost_info": {
"read_cost": "4.95",
"eval_cost": "1.98",
"prefix_cost": "225.26",
"data_read_per_join": "474"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`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": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.94",
"eval_cost": "1.98",
"prefix_cost": "232.18",
"data_read_per_join": "632"
},
"used_columns": [
"product_id",
"total"
]
}
},
{
"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": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.02",
"eval_cost": "1.98",
"prefix_cost": "239.18",
"data_read_per_join": "90K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 10458 |
Hausberg HB-8101AB Radiant Heater |
Delivard Store |
P |
0 |
| 10479 |
Hausberg Electric Digital Grill And Sandwich Maker |
Delivard Store |
P |
0 |
| 10484 |
Hausberg Electric Mixer With Bowl |
Delivard Store |
P |
0 |
| 10539 |
Hausberg Electric Iron With Steam Boiler HB-7925NG |
Delivard Store |
P |
0 |
| 10541 |
Hausberg Electric Cooker Hood With Touch Screen 90cm |
Delivard Store |
P |
0 |
| 10544 |
Hausberg Full Digital 20-Program Built-in Oven 88 L |
Delivard Store |
P |
0 |
| 10987 |
Elekta 9 In 1 Multi - Functional Food Processor 2L |
Delivard Store |
P |
0 |
| 11005 |
Elekta Electric Pressure Cooker 8L |
Delivard Store |
P |
0 |
| 11050 |
Elekta Microwave |
Delivard Store |
P |
0 |
| 11057 |
De'Longhi Caffe Crema Espresso |
Delivard Store |
P |
0 |
| 11065 |
Elekta Pizza Oven 20L |
Delivard Store |
P |
0 |
| 11076 |
De'Longhi Espresso Cups |
Delivard Store |
P |
0 |
| 11091 |
De'Longhi Fan Heater |
Delivard Store |
P |
0 |
| 11180 |
Elekta Floor Standing Air Condition 2 Ton |
Delivard Store |
P |
0 |
| 11184 |
Elekta Electric Wall Fan |
Delivard Store |
P |
0 |
| 11248 |
Hoover Cordless Vacuum |
Delivard Store |
P |
0 |
| 11253 |
De'Longhi Oil Filled Radiator |
Delivard Store |
P |
0 |
| 11312 |
De'Longhi Magnifica Evo Coffee Maker |
Delivard Store |
P |
0 |
| 7738 |
Fakir Ice Cream Maker – 1 Liter, 1000W – Homemade Ice Cream, Sorbet & Frozen Yogurt |
Delivard Store |
P |
0 |
| 7756 |
Fakir HYDROP-SB1004 – Water Dispenser – White |
Delivard Store |
P |
0 |
| 8858 |
Ninja FB131GY FrostVault Hard Cooler with Dry Zone |
Delivard Store |
P |
0 |
| 8871 |
Ninja OL550UK Foodi 11-in-1 SmartLid Multi-Cooker 6L |
Delivard Store |
P |
0 |
| 8946 |
Samsung LS03D The Frame QLED 4K Art Mode Smart TV 75" |
Delivard Store |
P |
0 |
| 10070 |
Xiaomi Standing Garment Steamer UK |
Delivard Store |
P |
0 |
| 10173 |
Xiaomi Faucet Water Purifier Filter |
Delivard Store |
P |
0 |
| 10245 |
Xiaomi Mi LCD Writing Table 13.5 BHR4245Gl |
Delivard Store |
P |
0 |
| 10260 |
Xiaomi Mi Vacuum Cleaner G10/G9 HEPA Filter Kit Gray |
Delivard Store |
P |
0 |
| 10418 |
Hausberg HB-7772AB – Blender |
Delivard Store |
P |
0 |
| 10439 |
Hausberg Electric Stainless Steel Sandwich Maker and Grill |
Delivard Store |
P |
0 |
| 10441 |
Hausberg Electric Stainless Steel Sandwich Maker and Grill |
Delivard Store |
P |
0 |
| 10443 |
Hausberg Electric Stainless Steel Sandwich Maker and Grill |
Delivard Store |
P |
0 |
| 10444 |
Hausberg Electric Sandwich Maker and Grill |
Delivard Store |
P |
0 |
| 10464 |
Hausberg HB-8801NG Radiant Heater |
Delivard Store |
P |
0 |
| 10489 |
Hausberg Electric Aluminium Body Meat Slicer |
Delivard Store |
P |
0 |
| 10546 |
Hausberg Electric Built-In Microwave Oven 20 L |
Delivard Store |
P |
0 |
| 10550 |
Hausberg Electric Built-In Vitroceramic Hob 2 Burners |
Delivard Store |
P |
0 |
| 10567 |
Hausberg Motion Metal TV Bracket |
Delivard Store |
P |
0 |
| 10568 |
Hausberg Metal TV Bracket HB-H 01F |
Delivard Store |
P |
0 |
| 10570 |
Hausberg Metal TV Bracket HB-H 03F |
Delivard Store |
P |
0 |
| 10986 |
Elekta Food Chopper 2.3L |
Delivard Store |
P |
0 |