Query time 0.00952
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "116.35"
},
"ordering_operation": {
"using_filesort": false,
"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": "variation_group_products",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 122,
"rows_produced_per_join": 122,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (89,527,415,202,208,819,221,229,228,246,354,433,167,505,509,372,217,219,175,471,541,642,610,289,234,284,247,249,207,235,815,195,643,646))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "51.21",
"eval_cost": "12.20",
"prefix_cost": "64.97",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.variation_group_products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "5.00",
"cost_info": {
"read_cost": "30.50",
"eval_cost": "0.61",
"prefix_cost": "107.67",
"data_read_per_join": "26K"
},
"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`.`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": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.variation_group_products.product_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.05",
"eval_cost": "1.22",
"prefix_cost": "111.94",
"data_read_per_join": "195"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "3.05",
"eval_cost": "0.06",
"prefix_cost": "116.21",
"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": "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.variation_group_products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.08",
"eval_cost": "0.06",
"prefix_cost": "116.35",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 1273 |
500 |
Samsung Galaxy Z Fold 6 |
Delivard Store |
89 |
P |
0 |
| 2302 |
20 |
Microsoft 13" Multi-Touch Surface Pro 10 for Business - Intel® Core Ultra 7 165U - 16GB RAM - 256GB SSD |
Delivard Store |
167 |
V |
2301 |
| 2301 |
20 |
Microsoft 13" Multi-Touch Surface Pro 10 for Business - Intel® Core Ultra 7 165U - 16GB RAM - 256GB SSD |
Delivard Store |
167 |
P |
0 |
| 2363 |
100 |
Xiaomi Mi Bluetooth Speaker GL |
Delivard Store |
175 |
P |
0 |
| 2364 |
100 |
Xiaomi Mi Bluetooth Speaker GL |
Delivard Store |
175 |
V |
2363 |
| 2365 |
100 |
Xiaomi Mi Bluetooth Speaker GL |
Delivard Store |
175 |
V |
2363 |
| 2430 |
100 |
Anker 322 PowerLine USB C to USB C Braided 3ft/0.9m 60W Cable |
Delivard Store |
195 |
V |
2431 |
| 2431 |
100 |
Anker 322 PowerLine USB C to USB C Braided 3ft/0.9m 60W Cable |
Delivard Store |
195 |
P |
0 |
| 2473 |
100 |
Xiaomi 15 |
Delivard Store |
202 |
P |
0 |
| 2475 |
100 |
Xiaomi 15 |
Delivard Store |
202 |
V |
2473 |
| 2476 |
100 |
Xiaomi 15 |
Delivard Store |
202 |
V |
2473 |
| 2477 |
100 |
Xiaomi 15 |
Delivard Store |
202 |
V |
2473 |
| 2503 |
100 |
Xiaomi 14 |
Delivard Store |
207 |
P |
0 |
| 2504 |
100 |
Xiaomi 14 |
Delivard Store |
207 |
V |
2503 |
| 2505 |
100 |
Xiaomi 14 |
Delivard Store |
207 |
V |
2503 |
| 2508 |
100 |
Xiaomi Pad 7 Pro |
Delivard Store |
208 |
P |
0 |
| 2550 |
100 |
Xiaomi Redmi Note 14 Pro 5G |
Delivard Store |
217 |
P |
0 |
| 2549 |
100 |
Xiaomi Redmi Note 14 Pro 5G |
Delivard Store |
217 |
V |
2550 |
| 2548 |
100 |
Xiaomi Redmi Note 14 Pro 5G |
Delivard Store |
217 |
V |
2550 |
| 2544 |
100 |
Xiaomi Redmi Note 14 Pro 5G |
Delivard Store |
217 |
V |
2550 |
| 2551 |
100 |
Xiaomi Redmi Note 14 Pro 5G |
Delivard Store |
217 |
V |
2550 |
| 2552 |
100 |
Xiaomi Redmi Note 14 Pro 5G |
Delivard Store |
217 |
V |
2550 |
| 2559 |
100 |
Anker Soundcore Sport X20 ANC TWS Earbuds |
Delivard Store |
219 |
P |
0 |
| 2560 |
100 |
Anker Soundcore Sport X20 ANC TWS Earbuds |
Delivard Store |
219 |
V |
2559 |
| 3663 |
100 |
Anker Soundcore Sport X20 ANC TWS Earbuds |
Delivard Store |
219 |
V |
2559 |
| 2534 |
100 |
Xiaomi Redmi Note 14S |
Delivard Store |
221 |
V |
2565 |
| 2564 |
100 |
Xiaomi Redmi Note 14S |
Delivard Store |
221 |
V |
2565 |
| 2565 |
100 |
Xiaomi Redmi Note 14S |
Delivard Store |
221 |
P |
0 |
| 2579 |
100 |
Xiaomi Poco F7 Ultra |
Delivard Store |
228 |
V |
2580 |
| 2580 |
100 |
Xiaomi Poco F7 Ultra |
Delivard Store |
228 |
P |
0 |
| 2300 |
100 |
Microsoft 13" Multi-Touch Surface Pro 10 for Business - Intel® Core Ultra 5 135U - 256GB SSD |
Delivard Store |
229 |
P |
0 |
| 2582 |
100 |
Microsoft 13" Multi-Touch Surface Pro 10 for Business - Intel® Core Ultra 5 135U - 256GB SSD |
Delivard Store |
229 |
V |
2300 |
| 2583 |
100 |
Microsoft 13" Multi-Touch Surface Pro 10 for Business - Intel® Core Ultra 5 135U - 256GB SSD |
Delivard Store |
229 |
V |
2300 |
| 2584 |
100 |
Microsoft 13" Multi-Touch Surface Pro 10 for Business - Intel® Core Ultra 5 135U - 256GB SSD |
Delivard Store |
229 |
V |
2300 |
| 2596 |
100 |
Xiaomi Poco X7 Pro 5G |
Delivard Store |
234 |
V |
2599 |
| 2597 |
100 |
Xiaomi Poco X7 Pro 5G |
Delivard Store |
234 |
V |
2599 |
| 2598 |
100 |
Xiaomi Poco X7 Pro 5G |
Delivard Store |
234 |
V |
2599 |
| 2599 |
100 |
Xiaomi Poco X7 Pro 5G |
Delivard Store |
234 |
P |
0 |
| 2600 |
100 |
Xiaomi Poco X7 Pro 5G |
Delivard Store |
234 |
V |
2599 |
| 2601 |
100 |
Xiaomi Poco X7 Pro 5G |
Delivard Store |
234 |
V |
2599 |
| 2602 |
100 |
Xiaomi Poco X7 5G |
Delivard Store |
235 |
P |
0 |
| 2604 |
100 |
Xiaomi Poco X7 5G |
Delivard Store |
235 |
V |
2602 |
| 2605 |
100 |
Xiaomi Poco X7 5G |
Delivard Store |
235 |
V |
2602 |
| 2606 |
100 |
Xiaomi Poco X7 5G |
Delivard Store |
235 |
V |
2602 |
| 2607 |
100 |
Xiaomi Poco X7 5G |
Delivard Store |
235 |
V |
2602 |
| 2608 |
100 |
Xiaomi Poco X7 5G |
Delivard Store |
235 |
V |
2602 |
| 2637 |
100 |
Xiaomi Poco Pad |
Delivard Store |
246 |
V |
2638 |
| 2638 |
100 |
Xiaomi Poco Pad |
Delivard Store |
246 |
P |
0 |
| 2641 |
100 |
Microsoft Surface Laptop 6 - 13.5" Touchscreen - Intel Core Ultra 7 165H - 16GB RAM - Windows 11 |
Delivard Store |
247 |
V |
2640 |
| 2291 |
100 |
Microsoft Surface Laptop 6 - 13.5" Touchscreen - Intel Core Ultra 7 165H - 16GB RAM - Windows 11 |
Delivard Store |
247 |
V |
2640 |
| 2639 |
100 |
Microsoft Surface Laptop 6 - 13.5" Touchscreen - Intel Core Ultra 7 165H - 16GB RAM - Windows 11 |
Delivard Store |
247 |
V |
2640 |
| 2640 |
100 |
Microsoft Surface Laptop 6 - 13.5" Touchscreen - Intel Core Ultra 7 165H - 16GB RAM - Windows 11 |
Delivard Store |
247 |
P |
0 |
| 2647 |
100 |
Microsoft Surface Pro 11 Copilot+ PC, 13" LCD 120Hz Touchscreen, Snapdragon X Elite, 16GB RAM, 1TB SSD,Shared Qualcomm Adreno Graphics / Windows 11 Pro, Platinum |
Delivard Store |
249 |
V |
2646 |
| 2646 |
100 |
Microsoft Surface Pro 11 Copilot+ PC, 13" LCD 120Hz Touchscreen, Snapdragon X Elite, 16GB RAM, 1TB SSD,Shared Qualcomm Adreno Graphics / Windows 11 Pro, Platinum |
Delivard Store |
249 |
P |
0 |
| 2822 |
100 |
Anker Soundcore Liberty 4 NC |
Delivard Store |
284 |
P |
0 |
| 2823 |
100 |
Anker Soundcore Liberty 4 NC |
Delivard Store |
284 |
V |
2822 |
| 2824 |
100 |
Anker Soundcore Liberty 4 NC |
Delivard Store |
284 |
V |
2822 |
| 2825 |
100 |
Anker Soundcore Liberty 4 NC |
Delivard Store |
284 |
V |
2822 |
| 2826 |
100 |
Anker Soundcore Liberty 4 NC |
Delivard Store |
284 |
V |
2822 |
| 2842 |
100 |
JBL Charge 6 Portable Waterproof Bluetooth Speaker |
Delivard Store |
289 |
V |
2845 |
| 2843 |
100 |
JBL Charge 6 Portable Waterproof Bluetooth Speaker |
Delivard Store |
289 |
V |
2845 |
| 2844 |
100 |
JBL Charge 6 Portable Waterproof Bluetooth Speaker |
Delivard Store |
289 |
V |
2845 |
| 2845 |
100 |
JBL Charge 6 Portable Waterproof Bluetooth Speaker |
Delivard Store |
289 |
P |
0 |
| 2846 |
100 |
JBL Charge 6 Portable Waterproof Bluetooth Speaker |
Delivard Store |
289 |
V |
2845 |
| 2847 |
100 |
JBL Charge 6 Portable Waterproof Bluetooth Speaker |
Delivard Store |
289 |
V |
2845 |
| 3155 |
100 |
Anker 312 Charger 25W USB-C Charger |
Delivard Store |
354 |
P |
0 |
| 3156 |
100 |
Anker 312 Charger 25W USB-C Charger |
Delivard Store |
354 |
V |
3155 |
| 2737 |
100 |
Anker 323 Dual Port Charger 33W Charger |
Delivard Store |
372 |
P |
0 |
| 3255 |
100 |
Anker 323 Dual Port Charger 33W Charger |
Delivard Store |
372 |
V |
2737 |
| 2502 |
100 |
Xiaomi 14 Ultra |
Delivard Store |
415 |
P |
0 |
| 3639 |
100 |
Xiaomi 14 Ultra |
Delivard Store |
415 |
V |
2502 |
| 3834 |
100 |
Belkin USB-C Cable TO Lightning |
Delivard Store |
433 |
P |
0 |
| 3835 |
100 |
Belkin USB-C Cable TO Lightning |
Delivard Store |
433 |
V |
3834 |
| 4126 |
100 |
ADATA UV128 USB 3.2 Flash Drive |
Delivard Store |
471 |
P |
0 |
| 4127 |
100 |
ADATA UV128 USB 3.2 Flash Drive |
Delivard Store |
471 |
V |
4126 |
| 4128 |
100 |
ADATA UV128 USB 3.2 Flash Drive |
Delivard Store |
471 |
V |
4126 |
| 4129 |
100 |
ADATA UV128 USB 3.2 Flash Drive |
Delivard Store |
471 |
V |
4126 |
| 4294 |
100 |
Logitech MX Master 3S Advanced Wireless Mouse |
Delivard Store |
505 |
P |
0 |
| 4295 |
100 |
Logitech MX Master 3S Advanced Wireless Mouse |
Delivard Store |
505 |
V |
4294 |
| 4316 |
100 |
Apple iPad Pro 13-inch (M4) |
Delivard Store |
509 |
P |
0 |
| 4317 |
100 |
Apple iPad Pro 13-inch (M4) |
Delivard Store |
509 |
V |
4316 |
| 4526 |
100 |
Samsung Galaxy S25 Ultra |
Delivard Store |
527 |
P |
0 |
| 4527 |
100 |
Samsung Galaxy S25 Ultra |
Delivard Store |
527 |
V |
4526 |
| 4528 |
100 |
Samsung Galaxy S25 Ultra |
Delivard Store |
527 |
V |
4526 |
| 4529 |
100 |
Samsung Galaxy S25 Ultra |
Delivard Store |
527 |
V |
4526 |
| 4530 |
100 |
Samsung Galaxy S25 Ultra |
Delivard Store |
527 |
V |
4526 |
| 4532 |
100 |
Samsung Galaxy S25 Ultra |
Delivard Store |
527 |
V |
4526 |
| 4533 |
100 |
Samsung Galaxy S25 Ultra |
Delivard Store |
527 |
V |
4526 |
| 4796 |
100 |
Galaxy Tab S10 Plus |
Delivard Store |
541 |
P |
0 |
| 4797 |
100 |
Galaxy Tab S10 Plus |
Delivard Store |
541 |
V |
4796 |
| 5624 |
100 |
Apple Magic Keyboard With Touch ID And Numeric Keypad For Mac Computers With Apple Silicon - Arabic |
Delivard Store |
610 |
V |
5625 |
| 5625 |
100 |
Apple Magic Keyboard With Touch ID And Numeric Keypad For Mac Computers With Apple Silicon - Arabic |
Delivard Store |
610 |
P |
0 |
| 5894 |
100 |
Apple Smart Folio for iPad Air (5th generation) |
Delivard Store |
642 |
V |
5892 |
| 5893 |
100 |
Apple Smart Folio for iPad Air (5th generation) |
Delivard Store |
642 |
V |
5892 |
| 5892 |
100 |
Apple Smart Folio for iPad Air (5th generation) |
Delivard Store |
642 |
P |
0 |
| 5900 |
100 |
Apple Magic Mouse (USB‑C) |
Delivard Store |
643 |
V |
5899 |
| 5899 |
100 |
Apple Magic Mouse (USB‑C) |
Delivard Store |
643 |
P |
0 |
| 5934 |
100 |
Apple Magic Trackpad - Surface Touch |
Delivard Store |
646 |
P |
0 |
| 5935 |
100 |
Apple Magic Trackpad - Surface Touch |
Delivard Store |
646 |
V |
5934 |
| 2459 |
100 |
Xiaomi TV A 2025 65" |
Delivard Store |
815 |
P |
0 |
| 8492 |
100 |
Xiaomi TV A 2025 50" |
Delivard Store |
815 |
P |
0 |
| 8491 |
100 |
Xiaomi TV A 2025 43" |
Delivard Store |
815 |
P |
0 |
| 8493 |
100 |
Xiaomi TV A 2025 55" |
Delivard Store |
815 |
P |
0 |
| 1532 |
100 |
Samsung QLED 4K Q60D Tizen OS Smart TV 65" |
Delivard Store |
819 |
P |
0 |
| 8502 |
100 |
Samsung QLED 4K Q60D Tizen OS Smart TV 75" |
Delivard Store |
819 |
P |
0 |
| 8501 |
100 |
Samsung QLED 4K Q60D Tizen OS Smart TV 55" |
Delivard Store |
819 |
P |
0 |
| 8499 |
100 |
Samsung QLED 4K Q60D Tizen OS Smart TV 85" |
Delivard Store |
819 |
P |
0 |