Query time 0.00428
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.65"
},
"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": 44,
"rows_produced_per_join": 44,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (1178,1180,1148,1176,1059,1177,1115,1067,1077,1071,1052,1074,1114,1050,1076))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "19.16",
"eval_cost": "4.40",
"prefix_cost": "25.12",
"data_read_per_join": "704"
},
"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": "11.00",
"eval_cost": "0.22",
"prefix_cost": "40.52",
"data_read_per_join": "9K"
},
"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": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.10",
"eval_cost": "0.44",
"prefix_cost": "42.06",
"data_read_per_join": "70"
},
"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.10",
"eval_cost": "0.02",
"prefix_cost": "43.60",
"data_read_per_join": "705"
},
"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.02",
"prefix_cost": "43.65",
"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 |
| 10982 |
100 |
راي بان ميغا كلوب ماستر مجموعة بلاكد آوت 50مم |
Delivard Store |
1050 |
V |
10978 |
| 10983 |
100 |
راي بان ميغا كلوب ماستر مجموعة بلاكد آوت 50مم |
Delivard Store |
1050 |
V |
10978 |
| 10978 |
100 |
راي بان ميغا كلوب ماستر مجموعة بلاكد آوت 50مم |
Delivard Store |
1050 |
P |
0 |
| 10996 |
100 |
راي بان ميغا كلوب ماستر مقاس 53 ملم |
Delivard Store |
1052 |
V |
10993 |
| 10995 |
100 |
راي بان ميغا كلوب ماستر مقاس 53 ملم |
Delivard Store |
1052 |
V |
10993 |
| 10993 |
100 |
راي بان ميغا كلوب ماستر مقاس 53 ملم |
Delivard Store |
1052 |
P |
0 |
| 11008 |
100 |
راي بان ميغا كلوب ماستر مقاس 53 ملم |
Delivard Store |
1052 |
V |
10993 |
| 11033 |
100 |
راي بان اوريجينال ويفارر مقاس 50 ملم |
Delivard Store |
1059 |
P |
0 |
| 11032 |
100 |
راي بان اوريجينال ويفارر مقاس 50 ملم |
Delivard Store |
1059 |
V |
11033 |
| 11031 |
100 |
راي بان اوريجينال ويفارر مقاس 50 ملم |
Delivard Store |
1059 |
V |
11033 |
| 11034 |
100 |
راي بان اوريجينال ويفارر مقاس 50 ملم |
Delivard Store |
1059 |
V |
11033 |
| 11028 |
100 |
راي بان اوريجينال ويفارر مقاس 50 ملم |
Delivard Store |
1059 |
V |
11033 |
| 11029 |
100 |
راي بان اوريجينال ويفارر مقاس 50 ملم |
Delivard Store |
1059 |
V |
11033 |
| 11027 |
100 |
راي بان اوريجينال ويفارر مقاس 50 ملم |
Delivard Store |
1059 |
V |
11033 |
| 11107 |
100 |
راي بان ليونارد 53 ملم |
Delivard Store |
1067 |
V |
11104 |
| 11106 |
100 |
راي بان ليونارد 53 ملم |
Delivard Store |
1067 |
V |
11104 |
| 11105 |
100 |
راي بان ليونارد 53 ملم |
Delivard Store |
1067 |
V |
11104 |
| 11104 |
100 |
راي بان ليونارد 53 ملم |
Delivard Store |
1067 |
P |
0 |
| 11122 |
100 |
راي بان بيل 60 ملم |
Delivard Store |
1071 |
V |
11121 |
| 11121 |
100 |
راي بان بيل 60 ملم |
Delivard Store |
1071 |
P |
0 |
| 11133 |
100 |
راي بان كارفان مقاس 55 ملم |
Delivard Store |
1074 |
P |
0 |
| 11135 |
100 |
راي بان كارفان مقاس 55 ملم |
Delivard Store |
1074 |
V |
11133 |
| 11140 |
100 |
راي بان برنارد 53 ملم |
Delivard Store |
1076 |
V |
11139 |
| 11139 |
100 |
راي بان برنارد 53 ملم |
Delivard Store |
1076 |
P |
0 |
| 11142 |
100 |
راي بان كارفان مقاس 58 ملم |
Delivard Store |
1077 |
V |
11141 |
| 11141 |
100 |
راي بان كارفان مقاس 58 ملم |
Delivard Store |
1077 |
P |
0 |
| 11356 |
100 |
راي بان ييفي بايو-بيسيد مقاس 58 ملم |
Delivard Store |
1114 |
P |
0 |
| 11357 |
100 |
راي بان ييفي بايو-بيسيد مقاس 58 ملم |
Delivard Store |
1114 |
V |
11356 |
| 11358 |
100 |
راي بان ييفي بايو-بيسيد مقاس 55 ملم |
Delivard Store |
1115 |
P |
0 |
| 11359 |
100 |
راي بان ييفي بايو-بيسيد مقاس 55 ملم |
Delivard Store |
1115 |
V |
11358 |
| 11464 |
100 |
راي بان آري Bio-Based مقاس 54 ملم |
Delivard Store |
1148 |
P |
0 |
| 11466 |
100 |
راي بان آري Bio-Based مقاس 54 ملم |
Delivard Store |
1148 |
V |
11464 |
| 11468 |
100 |
راي بان آري Bio-Based مقاس 54 ملم |
Delivard Store |
1148 |
V |
11464 |
| 11549 |
100 |
راي بان RB4441D بيو-بيسد 53 ملم |
Delivard Store |
1176 |
P |
0 |
| 11554 |
100 |
راي بان RB4441D بيو-بيسد 53 ملم |
Delivard Store |
1176 |
V |
11549 |
| 11556 |
100 |
راي بان RB4441D بيو-بيسد 53 ملم |
Delivard Store |
1176 |
V |
11549 |
| 11550 |
100 |
راي بان RB4457D بايو بيسد 55 مم |
Delivard Store |
1177 |
P |
0 |
| 11552 |
100 |
راي بان RB4457D بايو بيسد 55 مم |
Delivard Store |
1177 |
V |
11550 |
| 11553 |
100 |
راي بان RB4457D بايو بيسد 55 مم |
Delivard Store |
1177 |
V |
11550 |
| 11557 |
100 |
راي بان إكسبلورر V 60 ملم |
Delivard Store |
1178 |
P |
0 |
| 11558 |
100 |
راي بان إكسبلورر V 60 ملم |
Delivard Store |
1178 |
V |
11557 |
| 11568 |
100 |
راي بان جاك 53 ملم |
Delivard Store |
1180 |
P |
0 |
| 11569 |
100 |
راي بان جاك 53 ملم |
Delivard Store |
1180 |
V |
11568 |