Query time 0.00804
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "145.49"
},
"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": 150,
"rows_produced_per_join": 150,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (45,340,273,66,219,284,161,272,158,307,268,350,115,320,65,114,116,159,160,162,297,299,278,280,308,279,318,470,315,356,331,300,316,386,379,355,319,342,281,294,276,275,220,402,580,277,574,576,837,784,783,785,999))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "65.76",
"eval_cost": "15.00",
"prefix_cost": "82.32",
"data_read_per_join": "2K"
},
"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": 7,
"filtered": "5.00",
"cost_info": {
"read_cost": "37.50",
"eval_cost": "0.75",
"prefix_cost": "134.82",
"data_read_per_join": "33K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "140.07",
"data_read_per_join": "240"
},
"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.75",
"eval_cost": "0.08",
"prefix_cost": "145.32",
"data_read_per_join": "2K"
},
"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.10",
"eval_cost": "0.08",
"prefix_cost": "145.49",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 908 |
100 |
Xiaomi Buds 5 PRO |
Delivard Store |
45 |
P |
0 |
| 134 |
100 |
Xiaomi Buds 5 PRO |
Delivard Store |
45 |
V |
908 |
| 1142 |
499 |
Apple AirPods 4 |
Delivard Store |
65 |
V |
853 |
| 853 |
500 |
Apple AirPods 4 |
Delivard Store |
65 |
P |
0 |
| 1146 |
500 |
Apple AirPods Max |
Delivard Store |
66 |
V |
1143 |
| 1145 |
500 |
Apple AirPods Max |
Delivard Store |
66 |
V |
1143 |
| 1144 |
500 |
Apple AirPods Max |
Delivard Store |
66 |
V |
1143 |
| 1143 |
500 |
Apple AirPods Max |
Delivard Store |
66 |
P |
0 |
| 856 |
500 |
Apple AirPods Max |
Delivard Store |
66 |
V |
1143 |
| 1540 |
100 |
Samsung Galaxy Buds FE |
Delivard Store |
114 |
P |
0 |
| 1541 |
100 |
Samsung Galaxy Buds FE |
Delivard Store |
114 |
V |
1540 |
| 1542 |
100 |
Galaxy Buds 3 |
Delivard Store |
115 |
P |
0 |
| 1543 |
100 |
Galaxy Buds 3 |
Delivard Store |
115 |
V |
1542 |
| 1544 |
100 |
Samsung Galaxy Buds3 Pro |
Delivard Store |
116 |
P |
0 |
| 1545 |
100 |
Samsung Galaxy Buds3 Pro |
Delivard Store |
116 |
V |
1544 |
| 2258 |
99 |
Xiaomi Redmi Buds 6 Active |
Delivard Store |
158 |
V |
2255 |
| 2257 |
100 |
Xiaomi Redmi Buds 6 Active |
Delivard Store |
158 |
V |
2255 |
| 2256 |
100 |
Xiaomi Redmi Buds 6 Active |
Delivard Store |
158 |
V |
2255 |
| 2255 |
100 |
Xiaomi Redmi Buds 6 Active |
Delivard Store |
158 |
P |
0 |
| 2260 |
100 |
Xiaomi Redmi Buds 6 |
Delivard Store |
159 |
V |
2251 |
| 2259 |
100 |
Xiaomi Redmi Buds 6 |
Delivard Store |
159 |
V |
2251 |
| 2251 |
100 |
Xiaomi Redmi Buds 6 |
Delivard Store |
159 |
P |
0 |
| 2262 |
100 |
Xiaomi Redmi Buds 6 Pro |
Delivard Store |
160 |
V |
2252 |
| 2261 |
100 |
Xiaomi Redmi Buds 6 Pro |
Delivard Store |
160 |
V |
2252 |
| 2252 |
100 |
Xiaomi Redmi Buds 6 Pro |
Delivard Store |
160 |
P |
0 |
| 2265 |
99 |
Xiaomi Redmi Buds 6 Play |
Delivard Store |
161 |
V |
2253 |
| 2264 |
100 |
Xiaomi Redmi Buds 6 Play |
Delivard Store |
161 |
V |
2253 |
| 2263 |
100 |
Xiaomi Redmi Buds 6 Play |
Delivard Store |
161 |
V |
2253 |
| 2253 |
100 |
Xiaomi Redmi Buds 6 Play |
Delivard Store |
161 |
P |
0 |
| 2267 |
100 |
Xiaomi Redmi Buds 6 lite |
Delivard Store |
162 |
V |
2254 |
| 2266 |
100 |
Xiaomi Redmi Buds 6 lite |
Delivard Store |
162 |
V |
2254 |
| 2254 |
100 |
Xiaomi Redmi Buds 6 lite |
Delivard Store |
162 |
P |
0 |
| 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 |
| 2562 |
100 |
Anker Soundcore C40i Open-Ear Earbuds |
Delivard Store |
220 |
P |
0 |
| 2729 |
100 |
JBL Wave Beam in Ear Earbuds |
Delivard Store |
268 |
P |
0 |
| 2730 |
100 |
JBL Wave Beam in Ear Earbuds |
Delivard Store |
268 |
V |
2729 |
| 2731 |
100 |
JBL Wave Beam in Ear Earbuds |
Delivard Store |
268 |
V |
2729 |
| 2732 |
100 |
JBL Wave Beam in Ear Earbuds |
Delivard Store |
268 |
V |
2729 |
| 2746 |
100 |
JBL Tune Beam TWS |
Delivard Store |
272 |
V |
2751 |
| 2747 |
100 |
JBL Tune Beam TWS |
Delivard Store |
272 |
V |
2751 |
| 2749 |
100 |
JBL Tune Beam TWS |
Delivard Store |
272 |
V |
2751 |
| 2750 |
100 |
JBL Tune Beam TWS |
Delivard Store |
272 |
V |
2751 |
| 2751 |
100 |
JBL Tune Beam TWS |
Delivard Store |
272 |
P |
0 |
| 2752 |
100 |
JBL Tune Flex Earphones |
Delivard Store |
273 |
P |
0 |
| 2753 |
100 |
JBL Tune Flex Earphones |
Delivard Store |
273 |
V |
2752 |
| 2754 |
100 |
JBL Tune Flex Earphones |
Delivard Store |
273 |
V |
2752 |
| 2755 |
100 |
JBL Tune Flex Earphones |
Delivard Store |
273 |
V |
2752 |
| 2756 |
100 |
JBL Tune Flex Earphones |
Delivard Store |
273 |
V |
2752 |
| 2757 |
100 |
JBL Tune Flex Earphones |
Delivard Store |
273 |
V |
2752 |
| 2768 |
100 |
JBL LIVE Flex, True Wireless NC Earbuds, Wireless Charging, full touch |
Delivard Store |
275 |
V |
2767 |
| 2767 |
100 |
JBL LIVE Flex, True Wireless NC Earbuds, Wireless Charging, full touch |
Delivard Store |
275 |
P |
0 |
| 2775 |
100 |
Anker Soundcore R100 |
Delivard Store |
276 |
P |
0 |
| 2786 |
100 |
JBL LIVE Pro 2, True Wireless NC Earbuds, Wireless Charging, full touch TWS |
Delivard Store |
277 |
P |
0 |
| 2787 |
100 |
JBL LIVE Pro 2, True Wireless NC Earbuds, Wireless Charging, full touch TWS |
Delivard Store |
277 |
V |
2786 |
| 2788 |
100 |
JBL Live Beam 3wireless Noise Cancelling closed-stick earbuds |
Delivard Store |
278 |
P |
0 |
| 2789 |
100 |
JBL Live Beam 3wireless Noise Cancelling closed-stick earbuds |
Delivard Store |
278 |
V |
2788 |
| 2790 |
100 |
JBL Live Beam 3wireless Noise Cancelling closed-stick earbuds |
Delivard Store |
278 |
V |
2788 |
| 2791 |
100 |
JBL Live Beam 3wireless Noise Cancelling closed-stick earbuds |
Delivard Store |
278 |
V |
2788 |
| 2792 |
100 |
JBL Live flex 3 Noise Cancelling open-stick earbud TWS |
Delivard Store |
279 |
P |
0 |
| 2793 |
100 |
JBL Live flex 3 Noise Cancelling open-stick earbud TWS |
Delivard Store |
279 |
V |
2792 |
| 2794 |
100 |
JBL Live flex 3 Noise Cancelling open-stick earbud TWS |
Delivard Store |
279 |
V |
2792 |
| 2795 |
100 |
JBL Tour Pro 2 TWS |
Delivard Store |
280 |
P |
0 |
| 2796 |
100 |
JBL Tour Pro 2 TWS |
Delivard Store |
280 |
V |
2795 |
| 2800 |
100 |
JBL Tour Pro 3 earbuds |
Delivard Store |
281 |
P |
0 |
| 2801 |
100 |
JBL Tour Pro 3 earbuds |
Delivard Store |
281 |
V |
2800 |
| 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 |
| 2860 |
100 |
Anker Soundcore Liberty 4 |
Delivard Store |
294 |
P |
0 |
| 2869 |
100 |
JBL T230NC TWS |
Delivard Store |
297 |
P |
0 |
| 2870 |
100 |
JBL T230NC TWS |
Delivard Store |
297 |
V |
2869 |
| 2871 |
100 |
JBL T230NC TWS |
Delivard Store |
297 |
V |
2869 |
| 2877 |
100 |
JBL Wave Flex TWS |
Delivard Store |
299 |
P |
0 |
| 2878 |
100 |
JBL Wave Flex TWS |
Delivard Store |
299 |
V |
2877 |
| 2879 |
100 |
JBL Wave Flex TWS |
Delivard Store |
299 |
V |
2877 |
| 2880 |
100 |
JBL Wave Buds |
Delivard Store |
300 |
P |
0 |
| 2881 |
100 |
JBL Wave Buds |
Delivard Store |
300 |
V |
2880 |
| 2927 |
100 |
Anker Soundcore K20i TWS |
Delivard Store |
307 |
P |
0 |
| 2928 |
100 |
Anker Soundcore K20i TWS |
Delivard Store |
307 |
V |
2927 |
| 2929 |
100 |
Anker Soundcore K20i TWS |
Delivard Store |
307 |
V |
2927 |
| 2935 |
100 |
Anker Soundcore A30i Earbuds |
Delivard Store |
308 |
V |
2936 |
| 2936 |
100 |
Anker Soundcore A30i Earbuds |
Delivard Store |
308 |
P |
0 |
| 3011 |
100 |
Huawei Freebuds 6i |
Delivard Store |
315 |
P |
0 |
| 3012 |
100 |
Huawei Freebuds 6i |
Delivard Store |
315 |
V |
3011 |
| 3013 |
100 |
Huawei Freebuds 6i |
Delivard Store |
315 |
V |
3011 |
| 3014 |
100 |
Huawei Freebuds 5 |
Delivard Store |
316 |
P |
0 |
| 3015 |
100 |
Huawei Freebuds 5 |
Delivard Store |
316 |
V |
3014 |
| 3021 |
100 |
Huawei Freebuds SE 2 |
Delivard Store |
318 |
P |
0 |
| 3022 |
100 |
Huawei Freebuds SE 2 |
Delivard Store |
318 |
V |
3021 |
| 3023 |
100 |
Huawei Freebuds SE 3 |
Delivard Store |
319 |
P |
0 |
| 3024 |
100 |
Huawei Freebuds SE 3 |
Delivard Store |
319 |
V |
3023 |
| 3026 |
100 |
Huawei FreeBuds Pro 4 |
Delivard Store |
320 |
P |
0 |
| 3030 |
100 |
Huawei FreeBuds Pro 4 |
Delivard Store |
320 |
V |
3026 |
| 3029 |
100 |
Huawei FreeBuds Pro 4 |
Delivard Store |
320 |
V |
3026 |
| 3060 |
100 |
Anker Soundcore A20i TWS |
Delivard Store |
331 |
P |
0 |
| 3061 |
100 |
Anker Soundcore A20i TWS |
Delivard Store |
331 |
V |
3060 |
| 3090 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
P |
0 |
| 3091 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3092 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3093 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3094 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3099 |
100 |
Anker Soundcore C30i Open-Ear Clip Earbuds |
Delivard Store |
342 |
P |
0 |
| 3100 |
100 |
Anker Soundcore C30i Open-Ear Clip Earbuds |
Delivard Store |
342 |
V |
3099 |
| 3140 |
100 |
Anker Soundcore AeroFit TWS |
Delivard Store |
350 |
P |
0 |
| 3141 |
100 |
Anker Soundcore AeroFit TWS |
Delivard Store |
350 |
V |
3140 |
| 3160 |
100 |
Anker Soundcore Earphones R50i |
Delivard Store |
355 |
P |
0 |
| 3161 |
100 |
Anker Soundcore Earphones R50i |
Delivard Store |
355 |
V |
3160 |
| 2760 |
100 |
Anker Soundcore V20i Open-Ear TWS |
Delivard Store |
356 |
P |
0 |
| 3164 |
100 |
Anker Soundcore V20i Open-Ear TWS |
Delivard Store |
356 |
V |
2760 |
| 3165 |
100 |
Anker Soundcore V20i Open-Ear TWS |
Delivard Store |
356 |
V |
2760 |
| 3366 |
100 |
Belkin Wireless Earbuds |
Delivard Store |
379 |
P |
0 |
| 3367 |
100 |
Belkin Wireless Earbuds |
Delivard Store |
379 |
V |
3366 |
| 3404 |
100 |
Belkin SOUNDFORM Rise True Wireless Earbuds |
Delivard Store |
386 |
P |
0 |
| 3405 |
100 |
Belkin SOUNDFORM Rise True Wireless Earbuds |
Delivard Store |
386 |
V |
3404 |
| 3548 |
100 |
Belkin 012 SOUNDFORM RHYTHM TRUE WIRELESS EARBUDS |
Delivard Store |
402 |
P |
0 |
| 3549 |
100 |
Belkin 012 SOUNDFORM RHYTHM TRUE WIRELESS EARBUDS |
Delivard Store |
402 |
V |
3548 |
| 3373 |
100 |
Belkin SOUNDFORM NANO TRUE WIRELESS EARBUDS |
Delivard Store |
470 |
P |
0 |
| 4124 |
100 |
Belkin SOUNDFORM NANO TRUE WIRELESS EARBUDS |
Delivard Store |
470 |
V |
3373 |
| 4125 |
100 |
Belkin SOUNDFORM NANO TRUE WIRELESS EARBUDS |
Delivard Store |
470 |
V |
3373 |
| 5129 |
100 |
Philips TWS Headphones with ANC pro |
Delivard Store |
574 |
V |
5126 |
| 5126 |
100 |
Philips TWS Headphones with ANC pro |
Delivard Store |
574 |
P |
0 |
| 5135 |
100 |
Philips TWS Headphones |
Delivard Store |
576 |
V |
5133 |
| 5133 |
100 |
Philips TWS Headphones |
Delivard Store |
576 |
P |
0 |
| 5151 |
100 |
Philips Headphones |
Delivard Store |
580 |
P |
0 |
| 5153 |
100 |
Philips Headphones |
Delivard Store |
580 |
V |
5151 |
| 7871 |
100 |
1HORA TWS BT Earphone A8S with Screen |
Delivard Store |
783 |
P |
0 |
| 7872 |
100 |
1HORA TWS BT Earphone A8S with Screen |
Delivard Store |
783 |
V |
7871 |
| 7873 |
100 |
1HORA True Wireless Circular Earphones |
Delivard Store |
784 |
P |
0 |
| 7875 |
100 |
1HORA True Wireless Circular Earphones |
Delivard Store |
784 |
V |
7873 |
| 7876 |
100 |
1HORA True Wireless Circular Earphones |
Delivard Store |
784 |
V |
7873 |
| 7874 |
100 |
1HORA TWS BT Earphone F25 (DHZN) – True Wireless Stereo with HD Sound |
Delivard Store |
785 |
P |
0 |
| 7877 |
100 |
1HORA TWS BT Earphone F25 (DHZN) – True Wireless Stereo with HD Sound |
Delivard Store |
785 |
V |
7874 |
| 8703 |
100 |
Hama Freedom Light II Bluetooth TWS Earbuds with Voice Control |
Delivard Store |
837 |
P |
0 |
| 8704 |
100 |
Hama Freedom Light II Bluetooth TWS Earbuds with Voice Control |
Delivard Store |
837 |
V |
8703 |
| 8705 |
100 |
Hama Freedom Light II Bluetooth TWS Earbuds with Voice Control |
Delivard Store |
837 |
V |
8703 |
| 8706 |
100 |
Hama Freedom Light II Bluetooth TWS Earbuds with Voice Control |
Delivard Store |
837 |
V |
8703 |
| 10454 |
100 |
Nothing Ear 2 |
Delivard Store |
999 |
V |
10455 |
| 10455 |
100 |
Nothing Ear 2 |
Delivard Store |
999 |
P |
0 |