Query time 0.00837
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.60"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"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": "6K"
},
"used_columns": [
"company_id",
"status",
"company"
]
}
},
{
"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": 10,
"rows_produced_per_join": 0,
"filtered": "4.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`category_id` in (167,356,352,353,354,355,444,525,532,519))",
"cost_info": {
"read_cost": "6.97",
"eval_cost": "0.04",
"prefix_cost": "7.01",
"data_read_per_join": "1K"
},
"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": 77,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.58",
"eval_cost": "7.76",
"prefix_cost": "15.35",
"data_read_per_join": "1K"
},
"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": 3,
"filtered": "5.00",
"cost_info": {
"read_cost": "19.40",
"eval_cost": "0.39",
"prefix_cost": "42.51",
"data_read_per_join": "17K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`products`.`parent_product_id` = 0) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`company_id` = 1) 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": 3,
"filtered": "99.93",
"cost_info": {
"read_cost": "0.97",
"eval_cost": "0.39",
"prefix_cost": "43.87",
"data_read_per_join": "93"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.97",
"eval_cost": "0.39",
"prefix_cost": "45.23",
"data_read_per_join": "124"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.98",
"eval_cost": "0.39",
"prefix_cost": "46.60",
"data_read_per_join": "17K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 3489 |
Lenovo Legion Pro 7 16IAX10H 16" WQXGA OLED - Core Ultra 9 275HX - 64GB RAM - RTX 5090 24GB - 2TB SSD - WIN 11 PRO K |
Delivard Store |
P |
0 |
| 4572 |
ASUS All in One A3402WBAK-WA382, Intel Core i3-1215U, RAM 8GB, SSD 512GB, Intel UHD Graphics, 24 FHD LCD, White |
Delivard Store |
P |
0 |
| 4577 |
ASUS Vivobook 16 M1605YA-MB345, AMD Ryzen 7 7730U, RAM 16GB(Upgraded), SSD 512GB, AMD Radeon Graphics, 16.0 WUXGA, Tough Black |
Delivard Store |
P |
0 |
| 4711 |
MSI Commercial 14 H A2RM Laptop - 14” Display - Core 7 240H - 16GB DDR4 - 512GB NVMe SSD - Win 11 Pro |
Delivard Store |
P |
0 |
| 4578 |
ASUS TUF Gaming A15 FA506NFR-HN144, AMD Ryzen 7-7435HS, RAM 16GB, 512GB SSD, NVIDIA RTX 2050 4GB, 15.6 FHD IPS 144Hz, Graphite Black |
Delivard Store |
P |
0 |
| 4630 |
ASUS ROG Strix G18 G815LP-S8071, Intel Core Ultra 9-275HX, RAM 16GB, SSD 512GB, NVIDIA Geforce RTX 5070 8GB, 18.0 WUXGA 144Hz, Eclipse Gray |
Delivard Store |
P |
0 |
| 4631 |
ASUS ROG STRIX G16 G615LR-RV120, Intel Core Ultra 9 275HX, RAM 32GB, SSD 1TB, NVIDIA RTX 5070Ti 12GB, 16 WUXGA FHD+ IPS 165Hz, Black |
Delivard Store |
P |
0 |
| 4844 |
MSI Vector 17 HX AI A2XWJG 17” QHD 240Hz - Intel Core Ultra 9 275HX - 32GB RAM - 1TB SSD - NVIDIA GeForce RTX 5090 24GB - WIN 11 PRO K |
Delivard Store |
P |
0 |
| 4709 |
MSI Thin 15 B13UC-3013 Laptop - 15.6" FHD 144Hz - Intel Core i5-13420H - 8GB RAM - 512GB SSD - RTX2050 4GB - Win pro K |
Delivard Store |
P |
0 |
| 4556 |
ASUS Vivobook X1504ZA-NJ247, Intel Core i7-1255U, RAM 8GB, SSD 512GB NVMe, Intel Iris Xe Graphics, 15.6 FHD IPS, Cool Silver |
Delivard Store |
P |
0 |
| 4477 |
HP All in One 24-CR0027NE, Intel Core i5 1335U, RAM 16GB, SSD 512GB, Intel Iris Xe, 24 FHD IPS Touch, Shell white |
Delivard Store |
P |
0 |
| 3567 |
Lenovo ThinkPad E16 Gen 2 16" Laptop -Core™ Ultra 5 125U- 8GB RAM - 512GB SSD - Shared - WIN 10 PRO K (Business Black) |
Delivard Store |
P |
0 |
| 4042 |
DELL LAPTOP VOSTRO 3530 15.6" Laptop - Core i7-1355U - 8GB RAM - 512GB SSD - Shared - WIN Key |
Delivard Store |
P |
0 |
| 4607 |
ASUS TUF Gaming A15 FA507NUR-LP129, AMD Ryzen 7 7435HS, RAM 16GB, SSD 512GB, NVIDIA RTX 4050 6GB, 15.6 FHD IPS 144Hz, Mecha Gray |
Delivard Store |
P |
0 |
| 4633 |
ASUS ROG Strix G16 G615LW-S5136, Intel Core Ultra 9 275HX, RAM 32GB, SSD 1TB, NVIDIA RTX 5080 16GB, 16.0 WQXGA IPS 240Hz, Eclipse Gray |
Delivard Store |
P |
0 |
| 4223 |
HP Dragonfly LAPTOP Touchscreen 13.5 - Core i7-1355U EVO - 16GB RAM - 1TB SSD - Shared - WIN11 Pro |
Delivard Store |
P |
0 |
| 4090 |
HP ProBook 440 14" FHD G11 Notebook - Core Ultra 5 125U - 8GB RAM - 512GB SSD - Shared - WIN PRO K |
Delivard Store |
P |
0 |
| 4078 |
HP LAPTOP 15-FQ5299 Laptop - Core i7-1255U - 8GB RAM - 512GB SSD - Shared - WIN PRO K |
Delivard Store |
P |
0 |
| 4202 |
HP Envy x360 2-in-1 Laptop 16-AC0003 16" OLED 2.8K - Core Ultra 5 125U - RAM 8GB - 1TB SSD - Shared - WIN 11 |
Delivard Store |
P |
0 |
| 4547 |
HP All in One 24-cr0255nh, Intel Core i7-1355U, RAM 16GB, SSD 512GB, Intel Iris Xe Graphics, 24 FHD IPS Touch, Shell white |
Delivard Store |
P |
0 |
| 4634 |
ASUS ROG Strix SCAR 18 G835LX-S9110, Intel Core Ultra 9 275HX, RAM 64GB, SSD 1TB, NVIDIA RTX 5090 24GB, 18.0 WQXGA IPS 240Hz, Off Black |
Delivard Store |
P |
0 |
| 4713 |
MSI Summit 13 AI+ Evo A2VMTG-025AE Copilot+ PC 13.3" FHD+ Laptop - Core Ultra 9 288V - 32GB DDR5 RAM - 1TB SSD - Shared - Win 11 Home (Ink Black) |
Delivard Store |
P |
0 |
| 3561 |
Lenovo ThinkPad X1 Carbon Gen 12 14" WUXGA Laptop - Core Ultra 7 155U - 32GB RAM - 1TB SSD - Shared - Win 11 Pro |
Delivard Store |
P |
0 |
| 3984 |
Apple iMac (24-inch, M4), 10-core CPU and 10-core GPU, 16GB, 512GB SSD |
Delivard Store |
P |
0 |