Query time 0.00261
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.20"
},
"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": "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": "3K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 51,
"rows_produced_per_join": 51,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.56",
"eval_cost": "5.10",
"prefix_cost": "5.66",
"data_read_per_join": "816"
},
"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": "12.75",
"eval_cost": "0.26",
"prefix_cost": "23.51",
"data_read_per_join": "11K"
},
"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.64",
"eval_cost": "0.25",
"prefix_cost": "24.41",
"data_read_per_join": "61"
},
"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.64",
"eval_cost": "0.25",
"prefix_cost": "25.30",
"data_read_per_join": "81"
},
"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.65",
"eval_cost": "0.25",
"prefix_cost": "26.20",
"data_read_per_join": "11K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 4176 |
ADATA Legend 850 PCIe Gen4 x4 M.2 2280 Solid State Drive |
Delivard Store |
P |
0 |
| 4357 |
ADATA SU800 2.5" 3D TLC Internal SSD - 1TB |
Delivard Store |
P |
0 |
| 4287 |
ADATA SU680 2.5" 3D TLC Internal SSD - 512GB |
Delivard Store |
P |
0 |
| 4612 |
ADATA LEGEND 970 PCIe Gen5 x4 M.2 2280 Solid State Drive - 2TB |
Delivard Store |
P |
0 |
| 4187 |
ADATA SU650 2.5" 3D NAND Internal SSD _ 256GB |
Delivard Store |
P |
0 |
| 4639 |
ADATA LEGEND 970 PRO 2TB PCIe Gen5 x4 M.2 2280 Solid State Drive |
Delivard Store |
P |
0 |
| 4210 |
ADATA SU650 2.5" 3D NAND Internal SSD _ 512GB |
Delivard Store |
P |
0 |
| 4265 |
ADATA SU650 2.5" 3D NAND Internal SSD _ 1TB |
Delivard Store |
P |
0 |
| 4598 |
ADATA LEGEND 970 PCIe Gen5 x4 M.2 2280 Solid State Drive - 4TB |
Delivard Store |
P |
0 |
| 4503 |
ADATA SU650 2.5" 3D NAND Internal SSD _ 2TB |
Delivard Store |
P |
0 |
| 4613 |
ADATA LEGEND 970 PCIe Gen5 x4 M.2 2280 Solid State Drive - 1 TB |
Delivard Store |
P |
0 |
| 4504 |
ADATA LEGEND 860 PCIe Gen4 x4 M.2 2280 Solid State Drive 2000GB |
Delivard Store |
P |
0 |
| 4635 |
ADATA SD620 2TB USB 3.2 Gen2 External SSD – 550MB/s, MIL-STD Drop Resistant, Game & OS Compatible |
Delivard Store |
P |
0 |
| 4466 |
ADATA SD620 1TB USB 3.2 Gen2 External SSD – 550MB/s, MIL-STD Drop Resistant, Game & OS Compatible |
Delivard Store |
P |
0 |
| 4160 |
ADATA SD810 1TB USB 3.2 Gen2x2 External SSD – 2,000MB/s, IP68 Rugged, Game Console & OS Compatible |
Delivard Store |
P |
0 |
| 4164 |
MSI SPATIUM M480 PRO PCIe 4.0 NVMe M.2 Intenal SSD |
Delivard Store |
P |
0 |
| 4335 |
ADATA SD620 512GB USB 3.2 Gen2 External SSD – 550MB/s, MIL-STD Drop Resistant, Game & OS Compatible |
Delivard Store |
P |
0 |
| 4553 |
ADATA Legend 900 Pro 2 TB PCIe Gen4 x4 M.2 NVMe SSD – Up to 7,400 MB/s Read, 6,500 MB/s Write, NVMe 1.4, LDPC ECC, HMB, 1200 TBW, 5‑Year Warranty |
Delivard Store |
P |
0 |
| 4592 |
ADATA M.2 PCIe SSD IM2P32A4, M.2 2242, PCIe x4 Gen3- 1TB |
Delivard Store |
P |
0 |
| 4600 |
ADATA SE880 4TB USB 3.2 Gen2x2 External SSD – 2,000MB/s, Ultra-Compact, Game Console & OS Compatible |
Delivard Store |
P |
0 |
| 4340 |
ADATA SD810 4TB USB 3.2 Gen2x2 External SSD – 2,000MB/s, IP68 Rugged, Game Console & OS Compatible |
Delivard Store |
P |
0 |
| 4180 |
ADATA LEGEND 710 512GB PCIe Gen3x4 NVMe M.2 SSD - Up to 2,400/1,600MB/s, NVMe 1.4, HMB, LDPC ECC |
Delivard Store |
P |
0 |
| 4344 |
ADATA LEGEND 860 1TB PCIe Gen4x4 NVMe M.2 SSD – Up to 6,000/5,000MB/s, NVMe 2.0, HMB, LDPC ECC, PS5 Compatible |
Delivard Store |
P |
0 |
| 4591 |
ADATA SC610 1TB USB 3.2 Gen2 External SSD – 550MB/s, Capless & Cable-Free, Pocket-Sized Portability |
Delivard Store |
P |
0 |
| 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 |
| 4590 |
ADATA SC610 2TB USB 3.2 Gen2 External SSD – 550MB/s, Capless & Cable-Free, Pocket-Sized Portability |
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 |
| 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 |
| 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 |
| 4616 |
ADATA Legend 960 Max PCIe Gen4 x4 M.2 2280 with 7.35mm Heat Sink Solid State Drive - 4TB |
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 |