Query time 0.00375
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "82.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": 85,
"rows_produced_per_join": 85,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (829,847,824,828,836,826,825,845,851,865,858,843,859,863,834,827,830,846,835,864,844,861,849,862,850,833))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "36.26",
"eval_cost": "8.50",
"prefix_cost": "46.32",
"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": 4,
"filtered": "5.00",
"cost_info": {
"read_cost": "21.25",
"eval_cost": "0.43",
"prefix_cost": "76.07",
"data_read_per_join": "18K"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.13",
"eval_cost": "0.85",
"prefix_cost": "79.05",
"data_read_per_join": "136"
},
"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.13",
"eval_cost": "0.04",
"prefix_cost": "82.02",
"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.05",
"eval_cost": "0.04",
"prefix_cost": "82.12",
"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 |
| 8562 |
100 |
Tomtoc Laptop Backpack 15.6" / 22L |
Delivard Store |
824 |
P |
0 |
| 8563 |
100 |
Tomtoc Laptop Backpack 15.6" / 22L |
Delivard Store |
824 |
V |
8562 |
| 8564 |
100 |
Tomtoc Laptop Backpack 15.6" / 22L |
Delivard Store |
824 |
V |
8562 |
| 8565 |
100 |
Tomtoc Laptop Backpack 15.6" / 22L |
Delivard Store |
824 |
V |
8562 |
| 8619 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
P |
0 |
| 8621 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8622 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8623 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8624 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8625 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8918 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8919 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8920 |
100 |
Tomtoc Laptop Sleeve A13 |
Delivard Store |
825 |
V |
8619 |
| 8627 |
100 |
Tomtoc Laptop Briefcase A14 |
Delivard Store |
826 |
P |
0 |
| 8631 |
100 |
Tomtoc Laptop Briefcase A14 |
Delivard Store |
826 |
V |
8627 |
| 8632 |
100 |
Tomtoc Laptop Briefcase A14 |
Delivard Store |
826 |
V |
8627 |
| 8633 |
100 |
Tomtoc Laptop Briefcase A14 |
Delivard Store |
826 |
V |
8627 |
| 8692 |
100 |
Tomtoc Laptop Briefcase A14 |
Delivard Store |
826 |
V |
8627 |
| 8655 |
100 |
Tomtoc Laptop Sleeve A18 |
Delivard Store |
827 |
P |
0 |
| 8656 |
100 |
Tomtoc Laptop Sleeve A18 |
Delivard Store |
827 |
V |
8655 |
| 8657 |
100 |
Tomtoc Laptop Handbag A21 13.5" |
Delivard Store |
828 |
P |
0 |
| 8658 |
100 |
Tomtoc Laptop Handbag A21 13.5" |
Delivard Store |
828 |
V |
8657 |
| 8659 |
100 |
Tomtoc Laptop Handbag A21 13.5" |
Delivard Store |
828 |
V |
8657 |
| 8660 |
100 |
Tomtoc Laptop Handbag A21 13.5" |
Delivard Store |
828 |
V |
8657 |
| 8663 |
100 |
Tomtoc Accessory Pouch A27 2L |
Delivard Store |
829 |
P |
0 |
| 8664 |
100 |
Tomtoc Accessory Pouch A27 2L |
Delivard Store |
829 |
V |
8663 |
| 8665 |
100 |
Tomtoc Accessory Pouch A27 2L |
Delivard Store |
829 |
V |
8663 |
| 8666 |
100 |
Tomtoc Accessory Pouch A27 2L |
Delivard Store |
829 |
V |
8663 |
| 8667 |
100 |
Tomtoc Laptop Briefcase A42 15.6" |
Delivard Store |
830 |
P |
0 |
| 8668 |
100 |
Tomtoc Laptop Briefcase A42 15.6" |
Delivard Store |
830 |
V |
8667 |
| 8935 |
100 |
Tomtoc Laptop Briefcase A42 15.6" |
Delivard Store |
830 |
V |
8667 |
| 8683 |
100 |
Tomtoc Lady Laptop Handbag A11 13.5" |
Delivard Store |
833 |
P |
0 |
| 8684 |
100 |
Tomtoc Lady Laptop Handbag A11 13.5" |
Delivard Store |
833 |
V |
8683 |
| 8568 |
100 |
Tomtoc Laptop Sleeve A10 |
Delivard Store |
834 |
P |
0 |
| 8685 |
100 |
Tomtoc Laptop Sleeve A10 |
Delivard Store |
834 |
V |
8568 |
| 8560 |
100 |
Tomtoc Laptop Shoulder Bag ACE-A04 |
Delivard Store |
835 |
P |
0 |
| 8686 |
100 |
Tomtoc Laptop Shoulder Bag ACE-A04 |
Delivard Store |
835 |
V |
8560 |
| 8689 |
100 |
Tomtoc Laptop Handbag A12 13.5" |
Delivard Store |
836 |
P |
0 |
| 8690 |
100 |
Tomtoc Laptop Handbag A12 13.5" |
Delivard Store |
836 |
V |
8689 |
| 8691 |
100 |
Tomtoc Laptop Handbag A12 13.5" |
Delivard Store |
836 |
V |
8689 |
| 8731 |
100 |
Tomtoc Laptop Sleeve A27 |
Delivard Store |
843 |
P |
0 |
| 8733 |
100 |
Tomtoc Laptop Sleeve A27 |
Delivard Store |
843 |
V |
8731 |
| 8732 |
100 |
Tomtoc Laptop Sleeve A27 |
Delivard Store |
843 |
V |
8731 |
| 8734 |
100 |
Tomtoc Laptop Sleeve A27 |
Delivard Store |
843 |
V |
8731 |
| 8735 |
100 |
Tomtoc Laptop Sleeve A27 |
Delivard Store |
843 |
V |
8731 |
| 8736 |
100 |
Tomtoc Laptop Sleeve A27 |
Delivard Store |
843 |
V |
8731 |
| 8739 |
100 |
Tomtoc Laptop Backpack T64 15.6" 18L |
Delivard Store |
844 |
P |
0 |
| 8740 |
100 |
Tomtoc Laptop Backpack T64 15.6" 18L |
Delivard Store |
844 |
V |
8739 |
| 8760 |
100 |
Hama Silvan Laptop Bag Sustainable |
Delivard Store |
845 |
V |
8766 |
| 8763 |
100 |
Hama Silvan Laptop Bag Sustainable |
Delivard Store |
845 |
V |
8766 |
| 8764 |
100 |
Hama Silvan Laptop Bag Sustainable |
Delivard Store |
845 |
V |
8766 |
| 8765 |
100 |
Hama Silvan Laptop Bag Sustainable |
Delivard Store |
845 |
V |
8766 |
| 8766 |
100 |
Hama Silvan Laptop Bag Sustainable |
Delivard Store |
845 |
P |
0 |
| 8776 |
100 |
Tomtoc Chest Bag T35 |
Delivard Store |
846 |
P |
0 |
| 8777 |
100 |
Tomtoc Chest Bag T35 |
Delivard Store |
846 |
V |
8776 |
| 8779 |
100 |
Tomtoc Navigator-T24 Sling Bag |
Delivard Store |
847 |
P |
0 |
| 8780 |
100 |
Tomtoc Navigator-T24 Sling Bag |
Delivard Store |
847 |
V |
8779 |
| 8781 |
100 |
Tomtoc Navigator-T24 Sling Bag |
Delivard Store |
847 |
V |
8779 |
| 8782 |
100 |
Tomtoc Navigator-T24 Sling Bag |
Delivard Store |
847 |
V |
8779 |
| 8787 |
100 |
Tomtoc Versatile-T23 Laptop Tote Bag |
Delivard Store |
849 |
P |
0 |
| 8788 |
100 |
Tomtoc Versatile-T23 Laptop Tote Bag |
Delivard Store |
849 |
V |
8787 |
| 8815 |
100 |
Hama Urban 15.6″ Laptop Backpack |
Delivard Store |
850 |
P |
0 |
| 8816 |
100 |
Hama Urban 15.6″ Laptop Backpack |
Delivard Store |
850 |
V |
8815 |
| 8838 |
100 |
Tomtoc Navigator-T13 Accessory Pouch 2.4L |
Delivard Store |
851 |
P |
0 |
| 8840 |
100 |
Tomtoc Navigator-T13 Accessory Pouch 2.4L |
Delivard Store |
851 |
V |
8838 |
| 8910 |
100 |
Tomtoc Navigator-T03 Passport Bag 4 Passports |
Delivard Store |
858 |
P |
0 |
| 8911 |
100 |
Tomtoc Navigator-T03 Passport Bag 4 Passports |
Delivard Store |
858 |
V |
8910 |
| 8916 |
100 |
Tomtoc FancyCase-B06 iPad Case 12.9" |
Delivard Store |
859 |
P |
0 |
| 8917 |
100 |
Tomtoc FancyCase-B06 iPad Case 12.9" |
Delivard Store |
859 |
V |
8916 |
| 8748 |
100 |
Tomtoc Laptop Backpack T60 16" |
Delivard Store |
861 |
P |
0 |
| 8927 |
100 |
Tomtoc Laptop Backpack T60 16" |
Delivard Store |
861 |
V |
8748 |
| 8737 |
100 |
Tomtoc Travel Laptop Backpack T66 17" |
Delivard Store |
862 |
P |
0 |
| 8929 |
100 |
Tomtoc Travel Laptop Backpack T66 17" |
Delivard Store |
862 |
V |
8737 |
| 8930 |
100 |
Tomtoc Travel Laptop Backpack T66 17" |
Delivard Store |
862 |
V |
8737 |
| 8601 |
100 |
Hama Perth 15.6" Backpack |
Delivard Store |
863 |
P |
0 |
| 8931 |
100 |
Hama Perth 15.6" Backpack |
Delivard Store |
863 |
V |
8601 |
| 8932 |
100 |
Hama Perth 15.6" Backpack |
Delivard Store |
863 |
V |
8601 |
| 8933 |
100 |
Tomtoc Navigator-A33 Laptop Shoulder Bag |
Delivard Store |
864 |
P |
0 |
| 8934 |
100 |
Tomtoc Navigator-A33 Laptop Shoulder Bag |
Delivard Store |
864 |
V |
8933 |
| 8936 |
100 |
Tomtoc Defender-A22 Laptop Briefcase |
Delivard Store |
865 |
P |
0 |
| 8937 |
100 |
Tomtoc Defender-A22 Laptop Briefcase |
Delivard Store |
865 |
V |
8936 |
| 8939 |
100 |
Tomtoc Defender-A22 Laptop Briefcase |
Delivard Store |
865 |
V |
8936 |
| 8940 |
100 |
Tomtoc Defender-A22 Laptop Briefcase |
Delivard Store |
865 |
V |
8936 |
| 8941 |
100 |
Tomtoc Defender-A22 Laptop Briefcase |
Delivard Store |
865 |
V |
8936 |
| 8943 |
100 |
Tomtoc Defender-A22 Laptop Briefcase |
Delivard Store |
865 |
V |
8936 |