Query time 0.00260
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "63.82"
},
"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": 66,
"rows_produced_per_join": 66,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (829,847,824,826,828,836,825,851,865,843,859,827,834,830,846,835,864,844,861))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "27.86",
"eval_cost": "6.60",
"prefix_cost": "36.02",
"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": 3,
"filtered": "5.00",
"cost_info": {
"read_cost": "16.50",
"eval_cost": "0.33",
"prefix_cost": "59.12",
"data_read_per_join": "14K"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.65",
"eval_cost": "0.66",
"prefix_cost": "61.43",
"data_read_per_join": "105"
},
"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.65",
"eval_cost": "0.03",
"prefix_cost": "63.74",
"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.04",
"eval_cost": "0.03",
"prefix_cost": "63.82",
"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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |