Query time 0.00352
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.97"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
]
}
},
{
"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": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 13,
"rows_produced_per_join": 13,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.33",
"eval_cost": "1.30",
"prefix_cost": "3.19",
"data_read_per_join": "208"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "var_val_657",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"key_length": "15",
"ref": [
"const",
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.25",
"eval_cost": "1.30",
"prefix_cost": "7.74",
"data_read_per_join": "10K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "3.25",
"eval_cost": "0.07",
"prefix_cost": "12.29",
"data_read_per_join": "2K"
},
"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`.`parent_product_id` = 0) 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": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "99.93",
"cost_info": {
"read_cost": "0.16",
"eval_cost": "0.06",
"prefix_cost": "12.52",
"data_read_per_join": "15"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"table": {
"table_name": "popularity",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"total"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.16",
"eval_cost": "0.06",
"prefix_cost": "12.74",
"data_read_per_join": "20"
},
"used_columns": [
"product_id",
"total"
]
}
},
{
"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.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.16",
"eval_cost": "0.06",
"prefix_cost": "12.97",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 3998 |
ديل DELL لابتوب XPS 14 9440 بشاشة 14.5" FHD+، مع معالج Core Ultra 7 155H، وذاكرة 16 جيجابايت DDR5 رام، وتخزين 512 جيجابايت SSD، مع رسومات مشتركة، ونظام تشغيل Win 11. |
Delivard Store |
P |
0 |
| 2117 |
ديل فوسترو 3530 بشاشة 15.6 بوصة، بمعالج i5-1334U، وذاكرة عشوائية 8 جيجابايت، وقرص صلب SSD بسعة 512 جيجابايت. |
Delivard Store |
P |
0 |
| 2115 |
ديل فوسترو 3520 بشاشة 15.6 بوصة، بمعالج i5-1235U، وذاكرة عشوائية 8 جيجابايت، وقرص صلب SSD بسعة 512 جيجابايت. |
Delivard Store |
P |
0 |
| 4041 |
ديل فيسترو 3530 لابتوب 15.6" FHD 120Hz - كور i5-1334U - 8GB DDR4 رام - 512GB SSD - مشترك - ويندوز 11 برو K |
Delivard Store |
P |
0 |
| 4030 |
ديل إنسبايرون 14 7440 لابتوب 2 في 1 قابل للتحويل بشاشة 14 بوصة FHD+ - إنتل كور 5 120U - رام 8 جيجابايت - SSD سعة 512 جيجابايت - كرت مشترك - ويندوز 11 هوم |
Delivard Store |
P |
0 |
| 2118 |
ديل فوسترو 3530 بشاشة 15.6 بوصة، بمعالج i7-1355U، وذاكرة عشوائية DDR4 بسعة 8 جيجابايت، وقرص صلب SSD بسعة 512 جيجابايت. |
Delivard Store |
P |
0 |
| 2116 |
ديل فوسترو 3520 بشاشة 15.6 بوصة، بمعالج i7-1255U، وذاكرة عشوائية 16 جيجابايت، وقرص صلب SSD بسعة 512 جيجابايت. |
Delivard Store |
P |
0 |
| 4053 |
ديل لابتوب إنسبايرون 3520 15.6" شاشة لمس FHD - كور i5-1235U - 8GB رام - 512GB SSD - مشترك - ويندوز 10 برو K |
Delivard Store |
P |
0 |
| 3994 |
ديل DELL لابتوب XPS 16 9640 بشاشة FHD+ قياس 16.3 بوصة، مع معالج Core Ultra 7 155H، وذاكرة رام 16 جيجابايت، وتخزين SSD بسعة 1 تيرابايت، وبطاقة رسومات GeForce RTX 4050 بسعة 6 جيجابايت، يعمل بنظام ويندوز 11. |
Delivard Store |
P |
0 |
| 4042 |
ديل لابتوب فيسترو 3530 15.6" - كور i7-1355U - 8GB رام - 512GB SSD - مشترك - ويندوز مع مفتاح |
Delivard Store |
P |
0 |
| 4065 |
ديل فوسترو 3520 لابتوب 15.6" - كور i7-1255U - إس إس دي 512 جيجابايت - رام 16 جيجابايت - مشترك - ويندوز 10 برو K |
Delivard Store |
P |
0 |