Query time 0.00416
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "45.89"
},
"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": 46,
"rows_produced_per_join": 46,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (122,233,345,807,299,309,769,322,343,418,380,773,238,278,765,770,250))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "20.36",
"eval_cost": "4.60",
"prefix_cost": "26.52",
"data_read_per_join": "736"
},
"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.50",
"eval_cost": "0.23",
"prefix_cost": "42.62",
"data_read_per_join": "10K"
},
"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.15",
"eval_cost": "0.46",
"prefix_cost": "44.23",
"data_read_per_join": "73"
},
"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.15",
"eval_cost": "0.02",
"prefix_cost": "45.84",
"data_read_per_join": "737"
},
"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": "45.89",
"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 |
| 1615 |
100 |
باور بانك أنكر برايم بسعة 20,000 مللي أمبير و200 واط |
Delivard Store |
122 |
P |
0 |
| 1616 |
100 |
باور بانك أنكر برايم بسعة 20,000 مللي أمبير و200 واط |
Delivard Store |
122 |
V |
1615 |
| 2593 |
100 |
سماعة JBL T310C السلكية بمنفذ Type-C |
Delivard Store |
233 |
P |
0 |
| 2594 |
100 |
سماعة JBL T310C السلكية بمنفذ Type-C |
Delivard Store |
233 |
V |
2593 |
| 2595 |
100 |
سماعة JBL T310C السلكية بمنفذ Type-C |
Delivard Store |
233 |
V |
2593 |
| 2617 |
100 |
سماعة JBL Tune 125BT بلوتوث |
Delivard Store |
238 |
V |
2618 |
| 2618 |
100 |
سماعة JBL Tune 125BT بلوتوث |
Delivard Store |
238 |
P |
0 |
| 2649 |
100 |
Microsoft Surface Laptop Studio 2 for Business 14.4"- Core i7-13800H - 64GB RAM - NVIDIA RTX 4060 GPU 8GB - Windows 11 Pro |
Delivard Store |
250 |
P |
0 |
| 2650 |
100 |
Microsoft Surface Laptop Studio 2 for Business 14.4"- Core i7-13800H - 64GB RAM - NVIDIA RTX 4060 GPU 8GB - Windows 11 Pro |
Delivard Store |
250 |
V |
2649 |
| 2788 |
100 |
سماعات JBL Live Beam 3 اللاسلكية بإلغاء الضوضاء بتصميم عصا مغلقة |
Delivard Store |
278 |
P |
0 |
| 2789 |
100 |
سماعات JBL Live Beam 3 اللاسلكية بإلغاء الضوضاء بتصميم عصا مغلقة |
Delivard Store |
278 |
V |
2788 |
| 2790 |
100 |
سماعات JBL Live Beam 3 اللاسلكية بإلغاء الضوضاء بتصميم عصا مغلقة |
Delivard Store |
278 |
V |
2788 |
| 2791 |
100 |
سماعات JBL Live Beam 3 اللاسلكية بإلغاء الضوضاء بتصميم عصا مغلقة |
Delivard Store |
278 |
V |
2788 |
| 2877 |
100 |
سماعات JBL Wave Flex TWS |
Delivard Store |
299 |
P |
0 |
| 2878 |
100 |
سماعات JBL Wave Flex TWS |
Delivard Store |
299 |
V |
2877 |
| 2879 |
100 |
سماعات JBL Wave Flex TWS |
Delivard Store |
299 |
V |
2877 |
| 2938 |
100 |
مكبر صوت أنكر ساوندكور Select 4 Go بتقنية البلوتوث |
Delivard Store |
309 |
P |
0 |
| 2939 |
100 |
مكبر صوت أنكر ساوندكور Select 4 Go بتقنية البلوتوث |
Delivard Store |
309 |
V |
2938 |
| 2940 |
100 |
مكبر صوت أنكر ساوندكور Select 4 Go بتقنية البلوتوث |
Delivard Store |
309 |
V |
2938 |
| 2941 |
100 |
مكبر صوت أنكر ساوندكور Select 4 Go بتقنية البلوتوث |
Delivard Store |
309 |
V |
2938 |
| 3034 |
100 |
هواوي ميت باد 11.5 إس |
Delivard Store |
322 |
V |
3033 |
| 3033 |
100 |
هواوي ميت باد 11.5 إس |
Delivard Store |
322 |
P |
0 |
| 3104 |
100 |
سماعة أنكر ساوندكور سبيس وان |
Delivard Store |
343 |
P |
0 |
| 3105 |
100 |
سماعة أنكر ساوندكور سبيس وان |
Delivard Store |
343 |
V |
3104 |
| 3106 |
100 |
سماعة أنكر ساوندكور سبيس وان |
Delivard Store |
343 |
V |
3104 |
| 3112 |
100 |
محطة شحن أنكر ماج جو ثلاثية الوظائف بقوة 15 واط - مع تقنية Qi2 |
Delivard Store |
345 |
P |
0 |
| 3113 |
100 |
محطة شحن أنكر ماج جو ثلاثية الوظائف بقوة 15 واط - مع تقنية Qi2 |
Delivard Store |
345 |
V |
3112 |
| 3609 |
100 |
باور بانك بيلكن 20 ألف ملي أمبير 30 واط مع كابل مدمج |
Delivard Store |
380 |
V |
3370 |
| 3370 |
100 |
باور بانك بيلكن 20 ألف ملي أمبير 30 واط مع كابل مدمج |
Delivard Store |
380 |
P |
0 |
| 3371 |
100 |
باور بانك بيلكن 20 ألف ملي أمبير 30 واط مع كابل مدمج |
Delivard Store |
380 |
V |
3370 |
| 3664 |
100 |
كابل أنكر 322 USB-A إلى USB-C مضفر بطول 3 أقدام |
Delivard Store |
418 |
P |
0 |
| 3665 |
100 |
كابل أنكر 322 USB-A إلى USB-C مضفر بطول 3 أقدام |
Delivard Store |
418 |
V |
3664 |
| 7608 |
10 |
Hisense U7Q Ultra HD 4K Mini-LED Smart TV |
Delivard Store |
765 |
P |
0 |
| 7279 |
10 |
هيسنس U7Q تلفاز ذكي Mini-LED بدقة 4K ألترا إتش دي |
Delivard Store |
765 |
P |
0 |
| 7283 |
100 |
تلفزيون هايسنس Q7Q QLED الذكي بتقنية الذكاء الاصطناعي ودقة 4K مقاس 65 بوصة |
Delivard Store |
769 |
P |
0 |
| 7616 |
100 |
تلفزيون هايسنس Q7Q QLED الذكي بتقنية الذكاء الاصطناعي ودقة 4K مقاس 55 بوصة |
Delivard Store |
769 |
P |
0 |
| 7285 |
100 |
تلفزيون هايسنس A6500N الذكي بتقنية 4K UHD LED مقاس 75 بوصة |
Delivard Store |
770 |
P |
0 |
| 7620 |
100 |
تلفزيون هايسنس A6500N الذكي بتقنية 4K UHD LED مقاس 43 بوصة |
Delivard Store |
770 |
P |
0 |
| 7619 |
100 |
تلفزيون هايسنس A6500N الذكي بتقنية 4K UHD LED مقاس 65 بوصة |
Delivard Store |
770 |
P |
0 |
| 7618 |
100 |
تلفزيون هايسنس A6500N الذكي بتقنية 4K UHD LED مقاس 55 بوصة |
Delivard Store |
770 |
P |
0 |
| 7617 |
100 |
تلفزيون هايسنس A6500N الذكي بتقنية 4K UHD LED مقاس 50 بوصة |
Delivard Store |
770 |
P |
0 |
| 7293 |
100 |
تلفزيون هايسنس الذكي LED عالي الدقة بالكامل من سلسلة A4Q مقاس 43 بوصة |
Delivard Store |
773 |
P |
0 |
| 7625 |
100 |
تلفزيون هايسنس الذكي LED عالي الدقة بالكامل من سلسلة A4Q مقاس 32 بوصة |
Delivard Store |
773 |
P |
0 |
| 8474 |
100 |
Xiaomi TV S Mini 2025 |
Delivard Store |
807 |
P |
0 |
| 8475 |
100 |
Xiaomi TV S Mini 2025 |
Delivard Store |
807 |
P |
0 |
| 2441 |
100 |
شاومي تلفزيون إس ميني إصدار 2025 |
Delivard Store |
807 |
P |
0 |