Query time 0.00324
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "49.75"
},
"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": 51,
"rows_produced_per_join": 51,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (275,274,356,273,272,271,270,372,268,267,266,265,263,262,261))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "21.61",
"eval_cost": "5.10",
"prefix_cost": "28.27",
"data_read_per_join": "816"
},
"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": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "12.75",
"eval_cost": "0.26",
"prefix_cost": "46.12",
"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`.`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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.28",
"eval_cost": "0.51",
"prefix_cost": "47.91",
"data_read_per_join": "81"
},
"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": "1.28",
"eval_cost": "0.03",
"prefix_cost": "49.69",
"data_read_per_join": "818"
},
"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.03",
"eval_cost": "0.03",
"prefix_cost": "49.75",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 2702 |
100 |
Anker 544 C to C Cable Bio-Nylon 3ft |
Delivard Store |
261 |
P |
0 |
| 2703 |
100 |
Anker 544 C to C Cable Bio-Nylon 3ft |
Delivard Store |
261 |
V |
2702 |
| 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 |
| 2708 |
100 |
JBL Go Essential 2 |
Delivard Store |
263 |
P |
0 |
| 2709 |
100 |
JBL Go Essential 2 |
Delivard Store |
263 |
V |
2708 |
| 2710 |
100 |
JBL Go Essential 2 |
Delivard Store |
263 |
V |
2708 |
| 2714 |
100 |
JBL Quantum 100 M2 Gaming-Wired Over-ear Headset |
Delivard Store |
265 |
V |
2717 |
| 2715 |
100 |
JBL Quantum 100 M2 Gaming-Wired Over-ear Headset |
Delivard Store |
265 |
V |
2717 |
| 2716 |
100 |
JBL Quantum 100 M2 Gaming-Wired Over-ear Headset |
Delivard Store |
265 |
V |
2717 |
| 2717 |
100 |
JBL Quantum 100 M2 Gaming-Wired Over-ear Headset |
Delivard Store |
265 |
P |
0 |
| 2719 |
100 |
Anker 544 C to C Cable 180CM, 140W |
Delivard Store |
266 |
P |
0 |
| 2728 |
100 |
Anker 544 C to C Cable 180CM, 140W |
Delivard Store |
266 |
V |
2719 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |