Query time 0.00594
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "112.12"
},
"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": 116,
"rows_produced_per_join": 116,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (236,349,231,274,259,341,267,271,405,233,343,238,285,237,240,298,262,408,546,388,270,656,291,581,437,430,573,658,296,657,660,582,572,659,699,653,654,951))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "50.11",
"eval_cost": "11.60",
"prefix_cost": "63.27",
"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": 5,
"filtered": "5.00",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "0.58",
"prefix_cost": "103.87",
"data_read_per_join": "25K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.90",
"eval_cost": "1.16",
"prefix_cost": "107.93",
"data_read_per_join": "185"
},
"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": "2.90",
"eval_cost": "0.06",
"prefix_cost": "111.99",
"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.07",
"eval_cost": "0.06",
"prefix_cost": "112.12",
"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 |
| 2587 |
99 |
JBL Tune 110 Earphones |
Delivard Store |
231 |
P |
0 |
| 2588 |
100 |
JBL Tune 110 Earphones |
Delivard Store |
231 |
V |
2587 |
| 2589 |
100 |
JBL Tune 110 Earphones |
Delivard Store |
231 |
V |
2587 |
| 2590 |
100 |
JBL Tune 110 Earphones |
Delivard Store |
231 |
V |
2587 |
| 2593 |
100 |
JBL T310C Wired earphone Type C |
Delivard Store |
233 |
P |
0 |
| 2594 |
100 |
JBL T310C Wired earphone Type C |
Delivard Store |
233 |
V |
2593 |
| 2595 |
100 |
JBL T310C Wired earphone Type C |
Delivard Store |
233 |
V |
2593 |
| 2603 |
100 |
JBL T305C Wired earphone Type C |
Delivard Store |
236 |
P |
0 |
| 2609 |
100 |
JBL T305C Wired earphone Type C |
Delivard Store |
236 |
V |
2603 |
| 2610 |
100 |
JBL T305C Wired earphone Type C |
Delivard Store |
236 |
V |
2603 |
| 2611 |
100 |
JBL T305C Wired earphone Type C |
Delivard Store |
236 |
V |
2603 |
| 2613 |
100 |
JBL Jr310 Kids on-ear Headphones |
Delivard Store |
237 |
P |
0 |
| 2614 |
100 |
JBL Jr310 Kids on-ear Headphones |
Delivard Store |
237 |
V |
2613 |
| 2617 |
100 |
JBL Tune 125BT Bluetooth |
Delivard Store |
238 |
V |
2618 |
| 2618 |
100 |
JBL Tune 125BT Bluetooth |
Delivard Store |
238 |
P |
0 |
| 2619 |
100 |
Anker Soundcore Space One Pro Foldable Over-Ear Headphones |
Delivard Store |
240 |
P |
0 |
| 2622 |
100 |
Anker Soundcore Space One Pro Foldable Over-Ear Headphones |
Delivard Store |
240 |
V |
2619 |
| 2696 |
100 |
JBL Tune 520BT Headphone |
Delivard Store |
259 |
V |
2694 |
| 2697 |
100 |
JBL Tune 520BT Headphone |
Delivard Store |
259 |
V |
2694 |
| 2695 |
100 |
JBL Tune 520BT Headphone |
Delivard Store |
259 |
V |
2694 |
| 2694 |
100 |
JBL Tune 520BT Headphone |
Delivard Store |
259 |
P |
0 |
| 2704 |
100 |
JBL Jr310BT |
Delivard Store |
262 |
P |
0 |
| 2705 |
100 |
JBL Jr310BT |
Delivard Store |
262 |
V |
2704 |
| 2706 |
100 |
JBL Jr310BT |
Delivard Store |
262 |
V |
2704 |
| 2723 |
100 |
JBL Tune 720BT Headphone |
Delivard Store |
267 |
P |
0 |
| 2724 |
100 |
JBL Tune 720BT Headphone |
Delivard Store |
267 |
V |
2723 |
| 2725 |
100 |
JBL Tune 720BT Headphone |
Delivard Store |
267 |
V |
2723 |
| 2726 |
100 |
JBL Tune 720BT Headphone |
Delivard Store |
267 |
V |
2723 |
| 2739 |
100 |
JBL JR470 Noise Cancelling Kids Headphones |
Delivard Store |
270 |
P |
0 |
| 2740 |
100 |
JBL JR470 Noise Cancelling Kids Headphones |
Delivard Store |
270 |
V |
2739 |
| 2741 |
100 |
JBL JR470 Noise Cancelling Kids Headphones |
Delivard Store |
270 |
V |
2739 |
| 2742 |
100 |
JBL Tune 770NC Headphone |
Delivard Store |
271 |
P |
0 |
| 2743 |
100 |
JBL Tune 770NC Headphone |
Delivard Store |
271 |
V |
2742 |
| 2744 |
100 |
JBL Tune 770NC Headphone |
Delivard Store |
271 |
V |
2742 |
| 2745 |
100 |
JBL Tune 770NC Headphone |
Delivard Store |
271 |
V |
2742 |
| 2761 |
100 |
JBL Live 670NC |
Delivard Store |
274 |
P |
0 |
| 2762 |
100 |
JBL Live 670NC |
Delivard Store |
274 |
V |
2761 |
| 2763 |
100 |
JBL Live 670NC |
Delivard Store |
274 |
V |
2761 |
| 2764 |
100 |
JBL Live 670NC |
Delivard Store |
274 |
V |
2761 |
| 2828 |
100 |
Anker Soundcore Life Q30 |
Delivard Store |
285 |
P |
0 |
| 2830 |
100 |
Anker Soundcore Life Q30 |
Delivard Store |
285 |
V |
2828 |
| 2841 |
100 |
Anker Soundcore Space Q45 |
Delivard Store |
291 |
P |
0 |
| 2865 |
100 |
JBL Live 660NC Headphone |
Delivard Store |
296 |
P |
0 |
| 2872 |
100 |
JBL Tune 710BT Headphone |
Delivard Store |
298 |
P |
0 |
| 2873 |
100 |
JBL Tune 710BT Headphone |
Delivard Store |
298 |
V |
2872 |
| 2874 |
100 |
JBL Tune 710BT Headphone |
Delivard Store |
298 |
V |
2872 |
| 2875 |
100 |
JBL Tune 710BT Headphone |
Delivard Store |
298 |
V |
2872 |
| 3096 |
100 |
Anker Soundcore H30i |
Delivard Store |
341 |
P |
0 |
| 3097 |
100 |
Anker Soundcore H30i |
Delivard Store |
341 |
V |
3096 |
| 3098 |
100 |
Anker Soundcore H30i |
Delivard Store |
341 |
V |
3096 |
| 3104 |
100 |
Anker Soundcore Space One Headphone |
Delivard Store |
343 |
P |
0 |
| 3105 |
100 |
Anker Soundcore Space One Headphone |
Delivard Store |
343 |
V |
3104 |
| 3106 |
100 |
Anker Soundcore Space One Headphone |
Delivard Store |
343 |
V |
3104 |
| 3136 |
100 |
Anker Soundcore Q20i Headphone |
Delivard Store |
349 |
P |
0 |
| 3137 |
100 |
Anker Soundcore Q20i Headphone |
Delivard Store |
349 |
V |
3136 |
| 3138 |
100 |
Anker Soundcore Q20i Headphone |
Delivard Store |
349 |
V |
3136 |
| 3423 |
100 |
JBL Tune 215BT |
Delivard Store |
388 |
P |
0 |
| 3422 |
100 |
JBL Tune 215BT |
Delivard Store |
388 |
V |
3423 |
| 3610 |
100 |
Belkin Soundform Surround Wireless Headphones |
Delivard Store |
405 |
V |
3556 |
| 3556 |
100 |
Belkin Soundform Surround Wireless Headphones |
Delivard Store |
405 |
P |
0 |
| 3557 |
100 |
Belkin Soundform Surround Wireless Headphones |
Delivard Store |
405 |
V |
3556 |
| 3593 |
100 |
Belkin Soundform Isolate Noise Cancelling Headphones |
Delivard Store |
408 |
P |
0 |
| 3594 |
100 |
Belkin Soundform Isolate Noise Cancelling Headphones |
Delivard Store |
408 |
V |
3593 |
| 3812 |
100 |
Belkin Headphones With USB-C Connector |
Delivard Store |
430 |
P |
0 |
| 3813 |
100 |
Belkin Headphones With USB-C Connector |
Delivard Store |
430 |
V |
3812 |
| 3876 |
100 |
Belkin Headphones With Lighting Connector |
Delivard Store |
437 |
P |
0 |
| 3877 |
100 |
Belkin Headphones With Lighting Connector |
Delivard Store |
437 |
V |
3876 |
| 4888 |
100 |
Marshall Major V Headphones |
Delivard Store |
546 |
P |
0 |
| 4891 |
100 |
Marshall Major V Headphones |
Delivard Store |
546 |
V |
4888 |
| 4892 |
100 |
Marshall Major V Headphones |
Delivard Store |
546 |
V |
4888 |
| 5122 |
100 |
Philips Wired Headphones Type-C |
Delivard Store |
572 |
V |
5121 |
| 5121 |
100 |
Philips Wired Headphones Type-C |
Delivard Store |
572 |
P |
0 |
| 5124 |
100 |
Philips Wired Headphones Type-C |
Delivard Store |
573 |
P |
0 |
| 5125 |
100 |
Philips Wired Headphones Type-C |
Delivard Store |
573 |
V |
5124 |
| 5155 |
100 |
Philips Over-ear Headphones 5,000 Series |
Delivard Store |
581 |
P |
0 |
| 5156 |
100 |
Philips Over-ear Headphones 5,000 Series |
Delivard Store |
581 |
V |
5155 |
| 5157 |
100 |
Philips Over-ear Headphones 4,000 Series |
Delivard Store |
582 |
P |
0 |
| 5158 |
100 |
Philips Over-ear Headphones 4,000 Series |
Delivard Store |
582 |
V |
5157 |
| 5979 |
100 |
Bose Ultra Open Earbuds Wireless Charging Case Cover |
Delivard International Store |
653 |
V |
5980 |
| 5980 |
100 |
Bose Ultra Open Earbuds Wireless Charging Case Cover |
Delivard International Store |
653 |
P |
0 |
| 5981 |
100 |
Bose QuietComfort Wireless Noise-Canceling Earbuds |
Delivard International Store |
654 |
P |
0 |
| 5982 |
100 |
Bose QuietComfort Wireless Noise-Canceling Earbuds |
Delivard International Store |
654 |
V |
5981 |
| 5984 |
100 |
Bose QuietComfort Wireless Noise-Canceling Earbuds |
Delivard International Store |
654 |
V |
5981 |
| 6221 |
100 |
Bose QuietComfort Wireless Noise-Canceling Earbuds |
Delivard International Store |
654 |
V |
5981 |
| 5999 |
100 |
Bose Ultra Open True Wireless Earbuds |
Delivard International Store |
656 |
V |
5998 |
| 5997 |
100 |
Bose Ultra Open True Wireless Earbuds |
Delivard International Store |
656 |
V |
5998 |
| 5998 |
100 |
Bose Ultra Open True Wireless Earbuds |
Delivard International Store |
656 |
P |
0 |
| 6000 |
100 |
Bose Ultra Open True Wireless Earbuds |
Delivard International Store |
656 |
V |
5998 |
| 6001 |
100 |
Bose Ultra Open True Wireless Earbuds |
Delivard International Store |
656 |
V |
5998 |
| 6002 |
100 |
Bose Ultra Open True Wireless Earbuds |
Delivard International Store |
656 |
V |
5998 |
| 6003 |
100 |
Bose QuietComfort Ultra True Wireless Noise-Canceling Earbuds 2nd Gen |
Delivard International Store |
657 |
V |
6005 |
| 6004 |
100 |
Bose QuietComfort Ultra True Wireless Noise-Canceling Earbuds 2nd Gen |
Delivard International Store |
657 |
V |
6005 |
| 6005 |
100 |
Bose QuietComfort Ultra True Wireless Noise-Canceling Earbuds 2nd Gen |
Delivard International Store |
657 |
P |
0 |
| 6007 |
100 |
Bose QuietComfort Wireless Over-Ear Active Noise Canceling Headphones |
Delivard International Store |
658 |
P |
0 |
| 6008 |
100 |
Bose QuietComfort Wireless Over-Ear Active Noise Canceling Headphones |
Delivard International Store |
658 |
V |
6007 |
| 6009 |
100 |
Bose QuietComfort Wireless Over-Ear Active Noise Canceling Headphones |
Delivard International Store |
658 |
V |
6007 |
| 6010 |
100 |
Bose QuietComfort Wireless Over-Ear Active Noise Canceling Headphones |
Delivard International Store |
658 |
V |
6007 |
| 6011 |
100 |
Bose QuietComfort Wireless Over-Ear Active Noise Canceling Headphones |
Delivard International Store |
658 |
V |
6007 |
| 6012 |
100 |
Bose QuietComfort Wireless Over-Ear Active Noise Canceling Headphones |
Delivard International Store |
658 |
V |
6007 |
| 6013 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones |
Delivard International Store |
659 |
P |
0 |
| 6014 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones |
Delivard International Store |
659 |
V |
6013 |
| 6015 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones |
Delivard International Store |
659 |
V |
6013 |
| 6019 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones 2nd Gen |
Delivard International Store |
660 |
P |
0 |
| 6020 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones 2nd Gen |
Delivard International Store |
660 |
V |
6019 |
| 6021 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones 2nd Gen |
Delivard International Store |
660 |
V |
6019 |
| 6022 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones 2nd Gen |
Delivard International Store |
660 |
V |
6019 |
| 6023 |
100 |
Bose QuietComfort Ultra Wireless Noise Canceling Over-Ear Headphones 2nd Gen |
Delivard International Store |
660 |
V |
6019 |
| 6271 |
100 |
Dyson OnTrac Headphones |
Delivard Store |
699 |
P |
0 |
| 6272 |
100 |
Dyson OnTrac Headphones |
Delivard Store |
699 |
V |
6271 |
| 10022 |
100 |
Xiaomi Type-C Earphones |
Delivard Store |
951 |
P |
0 |
| 10028 |
100 |
Xiaomi Type-C Earphones |
Delivard Store |
951 |
V |
10022 |