Query time 0.00227
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.37"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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": 30,
"rows_produced_per_join": 30,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (601,602,742,686,678,618,680,687,619,701,672,617,700,703,704))",
"cost_info": {
"read_cost": "14.26",
"eval_cost": "3.00",
"prefix_cost": "17.26",
"data_read_per_join": "480"
},
"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": "17.71",
"cost_info": {
"read_cost": "7.50",
"eval_cost": "0.53",
"prefix_cost": "27.76",
"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`.`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": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "1.33",
"eval_cost": "0.05",
"prefix_cost": "29.62",
"data_read_per_join": "3K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`companies`.`status` = 'A')"
}
},
{
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.27",
"eval_cost": "0.11",
"prefix_cost": "29.99",
"data_read_per_join": "17"
},
"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": "0.27",
"eval_cost": "0.01",
"prefix_cost": "30.36",
"data_read_per_join": "170"
},
"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.01",
"eval_cost": "0.01",
"prefix_cost": "30.38",
"data_read_per_join": "248"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 5504 |
100 |
هيكفيجن DS-2CE19K0T-LXTS كاميرا ثابتة بولت 3K صوت ثنائي وصفارة |
Delivard Store |
601 |
P |
0 |
| 5505 |
100 |
هيكفيجن DS-2CE19K0T-LXTS كاميرا ثابتة بولت 3K صوت ثنائي وصفارة |
Delivard Store |
601 |
V |
5504 |
| 5506 |
100 |
هيكفيجن DS-2CE10UF3T-E كاميرا ميني بولت ثابتة 4K ColorVu PoC |
Delivard Store |
602 |
P |
0 |
| 5507 |
100 |
هيكفيجن DS-2CE10UF3T-E كاميرا ميني بولت ثابتة 4K ColorVu PoC |
Delivard Store |
602 |
V |
5506 |
| 5644 |
100 |
هيكفيجن DS-2CD1083G2-LIU كاميرا شبكة بولت ثابتة 8 ميجا بكسل ضوء هجين ذكي |
Delivard Store |
617 |
P |
0 |
| 5645 |
100 |
هيكفيجن DS-2CD1083G2-LIU كاميرا شبكة بولت ثابتة 8 ميجا بكسل ضوء هجين ذكي |
Delivard Store |
617 |
V |
5644 |
| 5647 |
100 |
كاميرا هيكفيجن DS‑2CD1183G2‑LIU كاميرا شبكة ثابتة 8 ميجا بكسل مع ضوء هجين ذكي |
Delivard Store |
618 |
P |
0 |
| 5648 |
100 |
كاميرا هيكفيجن DS‑2CD1183G2‑LIU كاميرا شبكة ثابتة 8 ميجا بكسل مع ضوء هجين ذكي |
Delivard Store |
618 |
V |
5647 |
| 5651 |
100 |
هيكفيجن DS‑2CD1147G2H‑LIU كاميرا دوم شبكة ثابتة 4 ميجا بكسل مع ColorVu وضوء هجين ذكي |
Delivard Store |
619 |
P |
0 |
| 5654 |
100 |
هيكفيجن DS‑2CD1147G2H‑LIU كاميرا دوم شبكة ثابتة 4 ميجا بكسل مع ColorVu وضوء هجين ذكي |
Delivard Store |
619 |
V |
5651 |
| 6081 |
100 |
الاسم بالعربية: كاميرا منزلية ذكية تعمل بالطاقة الشمسية من إي زفيز |
Delivard Store |
672 |
P |
0 |
| 6082 |
100 |
الاسم بالعربية: كاميرا منزلية ذكية تعمل بالطاقة الشمسية من إي زفيز |
Delivard Store |
672 |
V |
6081 |
| 6114 |
100 |
هيكفيجن DS-2CD2363G2-LI2U/S(L)(RB) كاميرا شبكة توريت ثابتة بدقة 6 ميجابكسل مع ضوء وامض وصوت تحذيري وميزة الإضاءة الهجينة الذكية |
Delivard Store |
678 |
P |
0 |
| 6115 |
100 |
هيكفيجن DS-2CD2363G2-LI2U/S(L)(RB) كاميرا شبكة توريت ثابتة بدقة 6 ميجابكسل مع ضوء وامض وصوت تحذيري وميزة الإضاءة الهجينة الذكية |
Delivard Store |
678 |
V |
6114 |
| 6146 |
100 |
هيكفيجن DS-2CE72KF0T-LTS كاميرا توريت ثابتة بدقة 3K مع صوت ثنائي الاتجاه |
Delivard Store |
680 |
P |
0 |
| 6147 |
100 |
هيكفيجن DS-2CE72KF0T-LTS كاميرا توريت ثابتة بدقة 3K مع صوت ثنائي الاتجاه |
Delivard Store |
680 |
V |
6146 |
| 6185 |
100 |
هيكفيجن DS-2CD1127G2H-LIU كاميرا شبكة دوم ثابتة بدقة 2 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
686 |
P |
0 |
| 6186 |
100 |
هيكفيجن DS-2CD1127G2H-LIU كاميرا شبكة دوم ثابتة بدقة 2 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
686 |
V |
6185 |
| 6187 |
100 |
هيكفيجن DS-2CD1327G2H-LIU كاميرا شبكة توريت ثابتة بدقة 2 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
687 |
P |
0 |
| 6188 |
100 |
هيكفيجن DS-2CD1327G2H-LIU كاميرا شبكة توريت ثابتة بدقة 2 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
687 |
V |
6187 |
| 6297 |
100 |
هيكفيجن DS-2CD1047G2H-LIU كاميرا شبكة بولت ثابتة بدقة 4 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
700 |
P |
0 |
| 6298 |
100 |
هيكفيجن DS-2CD1047G2H-LIU كاميرا شبكة بولت ثابتة بدقة 4 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
700 |
V |
6297 |
| 6300 |
100 |
هيكفيجن DS-2CD1347G2H-LIU(F) كاميرا شبكة توريت ثابتة بدقة 4 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
701 |
V |
6299 |
| 6299 |
100 |
هيكفيجن DS-2CD1347G2H-LIU(F) كاميرا شبكة توريت ثابتة بدقة 4 ميجابكسل مع تقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
701 |
P |
0 |
| 6304 |
100 |
هيكفيجن DS-2CE12KF3T-L كاميرا بولت ثابتة بدقة 3K بتقنية ColorVu وضوء مزدوج |
Delivard Store |
703 |
V |
6303 |
| 6303 |
100 |
هيكفيجن DS-2CE12KF3T-L كاميرا بولت ثابتة بدقة 3K بتقنية ColorVu وضوء مزدوج |
Delivard Store |
703 |
P |
0 |
| 6306 |
100 |
هيكفيجن DS-2CE10KF3T-LS كاميرا بولت صغيرة ثابتة بدقة 3K بتقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
704 |
V |
6305 |
| 6305 |
100 |
هيكفيجن DS-2CE10KF3T-LS كاميرا بولت صغيرة ثابتة بدقة 3K بتقنية ColorVu وإضاءة هجينة ذكية |
Delivard Store |
704 |
P |
0 |
| 6749 |
100 |
ZKTeco BioPro SA40 /واي فاي |
Delivard Store |
742 |
P |
0 |
| 6750 |
100 |
ZKTeco BioPro SA40 /واي فاي |
Delivard Store |
742 |
V |
6749 |