Query time 0.01156
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.96"
},
"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": 6,
"rows_produced_per_join": 0,
"filtered": "4.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`category_id` in (424,450,451,452,426,492))",
"cost_info": {
"read_cost": "4.19",
"eval_cost": "0.02",
"prefix_cost": "4.21",
"data_read_per_join": "769"
},
"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": 46,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.35",
"eval_cost": "4.66",
"prefix_cost": "9.22",
"data_read_per_join": "744"
},
"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": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "11.64",
"eval_cost": "0.23",
"prefix_cost": "25.51",
"data_read_per_join": "10K"
},
"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": 2,
"filtered": "99.93",
"cost_info": {
"read_cost": "0.58",
"eval_cost": "0.23",
"prefix_cost": "26.33",
"data_read_per_join": "55"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.58",
"eval_cost": "0.23",
"prefix_cost": "27.14",
"data_read_per_join": "74"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.59",
"eval_cost": "0.23",
"prefix_cost": "27.96",
"data_read_per_join": "10K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 8374 |
Hama 135723 Micro USB to USB-C 2.0 Gold-Plated Socket Adapter – Black |
Delivard Store |
P |
0 |
| 8442 |
Hama 205009 High-Speed HDMI™ Cable Plug-to-Plug, 4K, Ethernet, Gold-Plated – 10 m |
Delivard Store |
P |
0 |
| 8571 |
Hama 201740 Fabric Charging Cable, USB-C - USB-C, 100 W, 1.5 m, Nylon, Black |
Delivard Store |
P |
0 |
| 8726 |
Hama 178400 Micro‑USB to Lightning Adapter MFi – Black |
Delivard Store |
P |
0 |
| 8728 |
Hama 187262 QI‑FC15S Wireless Charger Set 15W Anthracite |
Delivard Store |
P |
0 |
| 8803 |
Hama 188324 FC10S Fabric Induction Charger 2000 mA Black |
Delivard Store |
P |
0 |
| 10085 |
Apple 30W USB-C Power Adapter |
Delivard Store |
P |
0 |
| 10099 |
Xiaomi Magnetic Charging Cable for Wearables |
Delivard Store |
P |
0 |
| 10106 |
Xiaomi Mi 20W Wireless Charging Stand |
Delivard Store |
P |
0 |
| 10166 |
Xiaomi Watch S1 Active Charging Cable |
Delivard Store |
P |
0 |
| 10256 |
Xiaomi Mi Smart Band 5 Charging Cable |
Delivard Store |
P |
0 |
| 7859 |
1HORA 2.4A Braided Aluminum Alloy Type-C Cable – Black |
Delivard Store |
P |
0 |
| 8268 |
Hama 1.5 m USB 2.0 USB-A to USB-B Cable – Black (200602) |
Delivard Store |
P |
0 |
| 8331 |
Hama Audio Optical Fibre Cable (Toslink ODT), Black, 3 m – Flexible, Durable with Aramid Fibre, Gold-Plated Connections |
Delivard Store |
P |
0 |
| 8378 |
Hama “Fabric” USB-C to USB-C Charging Cable 1m Nylon Orange – 201727 |
Delivard Store |
P |
0 |
| 8436 |
Hama 183317 Car Charger Lightning 30W Turbo Fast Charge with 1m Cable – White |
Delivard Store |
P |
0 |
| 8579 |
Hama 201561 Reflective Charging Cable, USB-C - Lightning, 1.5 m, Nylon, Blue |
Delivard Store |
P |
0 |
| 8583 |
Hama 201674 QI-FC15 15W Wireless Charging Pad Charger, Black |
Delivard Store |
P |
0 |
| 8606 |
Hama 205243 Ultra High Speed HDMI™ Cable, Certified, Plug-to-Plug, 8K, 3.0 m |
Delivard Store |
P |
0 |
| 8727 |
Hama 187263 FC15 Prime Line Induction Charger 2500 mA Black |
Delivard Store |
P |
0 |
| 10107 |
Xiaomi Mi 37W Dual-Port Car Charger |
Delivard Store |
P |
0 |
| 7858 |
1HORA V8 Series / IP USB 2.1A Cable 1m White |
Delivard Store |
P |
0 |
| 7862 |
1Hora GAR156 Fast Car Charger USB-C PD |
Delivard Store |
P |
0 |
| 8270 |
Hama 205007 High-Speed HDMI™ Cable Plug–Plug with Ethernet, Gold-Plated, 5 m – Black |
Delivard Store |
P |
0 |