Query time 0.00791
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 (513,514,515,516,517,518))",
"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 |
| 4282 |
ADATA LEGEND 710 1TB PCIe Gen3x4 NVMe M.2 SSD - Up to 2,400/1,800MB/s, NVMe 1.4, HMB, LDPC ECC |
Delivard Store |
P |
0 |
| 4461 |
ADATA Legend 960 Max PCIe Gen4 x4 M.2 2280 with 7.35mm Heat Sink Solid State Drive - 1TB |
Delivard Store |
P |
0 |
| 4502 |
ADATA Premier Extreme SD Express Card SDXC PCIe Gen3 UHS-I U3 SD7.0 - 256 GB |
Delivard Store |
P |
0 |
| 4590 |
ADATA SC610 2TB USB 3.2 Gen2 External SSD – 550MB/s, Capless & Cable-Free, Pocket-Sized Portability |
Delivard Store |
P |
0 |
| 4890 |
SanDisk Ultra Lite - 64GB - SD Card |
Delivard Store |
P |
0 |
| 4178 |
ADATA LEGEND 900 1TB PCIe Gen4x4 NVMe M.2 SSD – Up to 7,000/5,400MB/s, NVMe 1.4, HMB, LDPC ECC, PS5 Compatible |
Delivard Store |
P |
0 |
| 4596 |
ADATA ASDX256GUII3CL10-C Premier ONE SDXC UHS-II U3 Class10 V90 3D NAND Extreme 4K Ultra HD 290MB/s SD Card, 256 GB |
Delivard Store |
P |
0 |
| 4586 |
ADATA Premier Extreme SD Express Card SDXC PCIe Gen3 UHS-I U3 SD7.0 - 512GB |
Delivard Store |
P |
0 |
| 4290 |
ADATA HD710M Pro Rugged External HDD – IP68 Waterproof, Shock‑Resistant, USB 3.2 Gen 1, Camouflage Design |
Delivard Store |
P |
0 |
| 4893 |
SanDisk USB Cruzer Glide 3.0 Flash Drive Memory Stick - 256 GB |
Delivard Store |
P |
0 |
| 4462 |
ADATA UC310 Eco USB Flash Drive 35% PCR USB 3.2 - 64GB |
Delivard Store |
P |
0 |
| 4501 |
ADATA LEGEND 710 2TB PCIe Gen3x4 NVMe M.2 SSD - Up to 2,400/1,800MB/s, NVMe 1.4, HMB, LDPC ECC |
Delivard Store |
P |
0 |
| 5061 |
SanDisk iXpand Flash Drive Flip 64GB – Dual Lightning & USB 3.1 Type-A |
Delivard Store |
P |
0 |
| 5062 |
SanDisk Ultra Dual Drive Go 128GB USB 3.1 Flash Drive |
Delivard Store |
P |
0 |
| 4302 |
ADATA SC730 Compact External SSD – 600 MB/s USB 3.2 Gen 2, Dual USB‑C/USB‑A, 512 GB/1 TB, 50% PCR Eco-Friendly Build |
Delivard Store |
P |
0 |
| 4583 |
ADATA UC310 Eco USB Flash Drive 35% PCR USB 3.2 - 256GB |
Delivard Store |
P |
0 |
| 4616 |
ADATA Legend 960 Max PCIe Gen4 x4 M.2 2280 with 7.35mm Heat Sink Solid State Drive - 4TB |
Delivard Store |
P |
0 |
| 4554 |
ADATA UE720 USB 3.2 Gen 2 Flash Drive – 10 Gbps, 550/450 MB/s, Capless Slide Design, 64GB, Gray |
Delivard Store |
P |
0 |
| 4296 |
ADATA SC750 1TB USB 3.2 Gen2 External SSD – 1,050MB/s, Cable-Free Design, Mobile & Game Console Compatible |
Delivard Store |
P |
0 |
| 4352 |
ADATA SC610 500GB USB 3.2 Gen2 External SSD – 550MB/s, Capless & Cable-Free, Pocket-Sized Portability |
Delivard Store |
P |
0 |
| 4283 |
ADATA LEGEND 710 256GB PCIe Gen3x4 NVMe M.2 SSD - Up to 2,100/1,000MB/s, NVMe 1.4, HMB, LDPC ECC |
Delivard Store |
P |
0 |
| 4353 |
ADATA SC750 500GB External SSD - USB 3.2 Gen2, 1,050MB/s, Cable-Free for Phones & Consoles, ProRes Compatible |
Delivard Store |
P |
0 |
| 4273 |
ADATA UC300 Type-C USB Flash Drive – USB 3.2 Gen 1, Up to 5Gbps - Sliding Capless Design, Compatible with Windows, macOS, Android, iPhone 15/16 - 128GB |
Delivard Store |
P |
0 |
| 4472 |
ADATA UR340 256GB USB 3.2 Flash Drive – Compact, Metal Housing, Waterproof, Keychain Friendly |
Delivard Store |
P |
0 |