Query time 0.00910
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "100.90"
},
"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": 108,
"rows_produced_per_join": 108,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (623,608,642,625,547,562,622,621,552,564,466,673,689,555,464,624,667,465,635,669,679))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "43.06",
"eval_cost": "10.80",
"prefix_cost": "55.42",
"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": "27.00",
"eval_cost": "0.54",
"prefix_cost": "93.22",
"data_read_per_join": "23K"
},
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.70",
"eval_cost": "1.08",
"prefix_cost": "97.00",
"data_read_per_join": "172"
},
"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.70",
"eval_cost": "0.05",
"prefix_cost": "100.78",
"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.05",
"prefix_cost": "100.91",
"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 |
| 4108 |
100 |
Baykron PT-P148 Airpod 3rd Generation Silicone Case |
Delivard Store |
464 |
V |
3734 |
| 4107 |
100 |
Baykron PT-P148 Airpod 3rd Generation Silicone Case |
Delivard Store |
464 |
V |
3734 |
| 3734 |
100 |
Baykron PT-P148 Airpod 3rd Generation Silicone Case |
Delivard Store |
464 |
P |
0 |
| 4109 |
100 |
Baykron Duotone Silicone Case for Apple Pencil |
Delivard Store |
465 |
V |
3798 |
| 3798 |
100 |
Baykron Duotone Silicone Case for Apple Pencil |
Delivard Store |
465 |
P |
0 |
| 4110 |
100 |
Baykron Apple Pencil Holder |
Delivard Store |
466 |
V |
3811 |
| 4111 |
100 |
Baykron Apple Pencil Holder |
Delivard Store |
466 |
V |
3811 |
| 3811 |
100 |
Baykron Apple Pencil Holder |
Delivard Store |
466 |
P |
0 |
| 4899 |
100 |
Apple iPhone 16e Silicone Case |
Delivard Store |
547 |
V |
4894 |
| 4898 |
100 |
Apple iPhone 16e Silicone Case |
Delivard Store |
547 |
V |
4894 |
| 4897 |
100 |
Apple iPhone 16e Silicone Case |
Delivard Store |
547 |
V |
4894 |
| 4896 |
100 |
Apple iPhone 16e Silicone Case |
Delivard Store |
547 |
V |
4894 |
| 4894 |
100 |
Apple iPhone 16e Silicone Case |
Delivard Store |
547 |
P |
0 |
| 4915 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
P |
0 |
| 4917 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4924 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4923 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4922 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4921 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4920 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4919 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4918 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4925 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4927 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4926 |
100 |
Apple iPhone 16 Pro Max Silicone Case with MagSafe |
Delivard Store |
552 |
V |
4915 |
| 4941 |
100 |
Apple iPhone 15 FineWoven Case with MagSafe |
Delivard Store |
555 |
V |
4935 |
| 4940 |
100 |
Apple iPhone 15 FineWoven Case with MagSafe |
Delivard Store |
555 |
V |
4935 |
| 4939 |
100 |
Apple iPhone 15 FineWoven Case with MagSafe |
Delivard Store |
555 |
V |
4935 |
| 4935 |
100 |
Apple iPhone 15 FineWoven Case with MagSafe |
Delivard Store |
555 |
P |
0 |
| 4973 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4972 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4971 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4970 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4969 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4968 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4967 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4966 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4965 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4964 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4963 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
V |
4962 |
| 4962 |
100 |
Apple iPhone 16 Pro Silicone Case with MagSafe |
Delivard Store |
562 |
P |
0 |
| 4987 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4986 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4985 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4984 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4977 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4976 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
P |
0 |
| 4981 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4980 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4979 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4978 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4982 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 4983 |
100 |
Apple iPhone 16 Plus Silicone Case with MagSafe |
Delivard Store |
564 |
V |
4976 |
| 5618 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
V |
5621 |
| 5619 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
V |
5621 |
| 5620 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
V |
5621 |
| 5621 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
P |
0 |
| 5687 |
100 |
Apple Smart Folio for iPad Air 11-inch (M3) |
Delivard Store |
621 |
P |
0 |
| 5688 |
100 |
Apple Smart Folio for iPad Air 11-inch (M3) |
Delivard Store |
621 |
V |
5687 |
| 5689 |
100 |
Apple Smart Folio for iPad Air 11-inch (M3) |
Delivard Store |
621 |
V |
5687 |
| 5690 |
100 |
Apple Smart Folio for iPad Air 11-inch (M3) |
Delivard Store |
621 |
V |
5687 |
| 5691 |
100 |
Apple Smart Folio for iPad Air 13-inch (M3) |
Delivard Store |
622 |
P |
0 |
| 5692 |
100 |
Apple Smart Folio for iPad Air 13-inch (M3) |
Delivard Store |
622 |
V |
5691 |
| 5693 |
100 |
Apple Smart Folio for iPad Air 13-inch (M3) |
Delivard Store |
622 |
V |
5691 |
| 5694 |
100 |
Apple Smart Folio for iPad Air 13-inch (M3) |
Delivard Store |
622 |
V |
5691 |
| 5696 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
P |
0 |
| 5697 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
V |
5696 |
| 5698 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
V |
5696 |
| 5699 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
V |
5696 |
| 5700 |
100 |
Apple Smart Folio for iPad Pro 11-inch (M4) |
Delivard Store |
624 |
P |
0 |
| 5701 |
100 |
Apple Smart Folio for iPad Pro 11-inch (M4) |
Delivard Store |
624 |
V |
5700 |
| 5702 |
100 |
Apple Smart Folio for iPad Pro 11-inch (M4) |
Delivard Store |
624 |
V |
5700 |
| 5703 |
100 |
Apple Smart Folio for iPad Pro 13-inch (M4) |
Delivard Store |
625 |
P |
0 |
| 5704 |
100 |
Apple Smart Folio for iPad Pro 13-inch (M4) |
Delivard Store |
625 |
V |
5703 |
| 5705 |
100 |
Apple Smart Folio for iPad Pro 13-inch (M4) |
Delivard Store |
625 |
V |
5703 |
| 6204 |
100 |
Apple iPhone 15 Plus Silicone Case with MagSafe |
Delivard Store |
635 |
P |
0 |
| 5894 |
100 |
Apple Smart Folio for iPad Air (5th generation) |
Delivard Store |
642 |
V |
5892 |
| 5893 |
100 |
Apple Smart Folio for iPad Air (5th generation) |
Delivard Store |
642 |
V |
5892 |
| 5892 |
100 |
Apple Smart Folio for iPad Air (5th generation) |
Delivard Store |
642 |
P |
0 |
| 6064 |
100 |
Apple iPhone 15 Plus FineWoven Case with MagSafe |
Delivard Store |
667 |
P |
0 |
| 6065 |
100 |
Apple iPhone 15 Plus FineWoven Case with MagSafe |
Delivard Store |
667 |
V |
6064 |
| 6066 |
100 |
Apple iPhone 15 Plus FineWoven Case with MagSafe |
Delivard Store |
667 |
V |
6064 |
| 6067 |
100 |
Apple iPhone 15 Plus FineWoven Case with MagSafe |
Delivard Store |
667 |
V |
6064 |
| 6074 |
100 |
Apple iPhone 15 Silicone Case with MagSafe |
Delivard Store |
669 |
P |
0 |
| 6075 |
100 |
Apple iPhone 15 Silicone Case with MagSafe |
Delivard Store |
669 |
V |
6074 |
| 5956 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
V |
6093 |
| 6087 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
V |
6093 |
| 6088 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
V |
6093 |
| 6089 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
V |
6093 |
| 6090 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
V |
6093 |
| 6091 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
V |
6093 |
| 6092 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
V |
6093 |
| 6093 |
100 |
Apple iPhone FineWoven Wallet with MagSafe |
Delivard Store |
673 |
P |
0 |
| 6117 |
100 |
Apple smart cover for iPad (7th) & iPad Air (3rd gen) |
Delivard Store |
679 |
P |
0 |
| 6118 |
100 |
Apple smart cover for iPad (7th) & iPad Air (3rd gen) |
Delivard Store |
679 |
V |
6117 |
| 6196 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |
| 6195 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |
| 6194 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
P |
0 |
| 6197 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |
| 6198 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |
| 6199 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |
| 6200 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |
| 6201 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |
| 6202 |
100 |
Apple iPhone 16 Silicone Case with MagSafe |
Delivard Store |
689 |
V |
6194 |