Query time 0.07537
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "262.48"
},
"ordering_operation": {
"using_filesort": true,
"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": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 56,
"rows_produced_per_join": 2,
"filtered": "4.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`category_id` in (250,612,385,371,393,404,410,412,440,441,305,554,562,568,485,386,336,394,405,411,413,442,555,563,569,387,304,489,406,251,570,397,407,428,398,408,488,491,395,409,439,615,482,308,565,380,400,401,402,458,553,649,656,663,667,668))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "38.99",
"eval_cost": "0.22",
"prefix_cost": "40.77",
"data_read_per_join": "7K"
},
"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": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.cscart_categories.category_id"
],
"rows_examined_per_scan": 194,
"rows_produced_per_join": 434,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.26",
"eval_cost": "43.46",
"prefix_cost": "87.49",
"data_read_per_join": "6K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"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": 21,
"filtered": "5.00",
"cost_info": {
"read_cost": "108.64",
"eval_cost": "2.17",
"prefix_cost": "239.59",
"data_read_per_join": "96K"
},
"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": 21,
"filtered": "99.93",
"cost_info": {
"read_cost": "5.43",
"eval_cost": "2.17",
"prefix_cost": "247.19",
"data_read_per_join": "521"
},
"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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.43",
"eval_cost": "2.17",
"prefix_cost": "254.79",
"data_read_per_join": "694"
},
"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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.51",
"eval_cost": "2.17",
"prefix_cost": "262.48",
"data_read_per_join": "99K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 5547 |
تريسا فلتر كوفي ميكر - بيرفكت كوفي 6 |
Delivard Store |
P |
0 |
| 5675 |
ساترو ليمون تي 04 |
Delivard Store |
P |
0 |
| 5534 |
ساج باريستا برو |
Delivard Store |
P |
0 |
| 5538 |
ساج باريستا إكسبريس |
Delivard Store |
P |
0 |
| 5471 |
سيج ذا باريستا تاتش |
Delivard Store |
P |
0 |
| 5548 |
تريسا فلتر كوفي ميكر - بيرفكت كوفي 12 |
Delivard Store |
P |
0 |
| 5674 |
ساترو كابتشينو 09 |
Delivard Store |
P |
0 |
| 5401 |
حبوب قهوة باتيل أرابيكا |
Delivard Store |
P |
0 |
| 5542 |
تريسا إسبريسو ماشين - باريستا بلس (أنثراسيت) |
Delivard Store |
P |
0 |
| 8362 |
هاما "Spot Pointer V2" جهاز تقديم مع مؤشر ليزر رقمي، إضاءة نقطية وتكبير – 139919 |
Delivard Store |
P |
0 |
| 5199 |
يوبيكويتي يو ني فاي U6 Plus |
Delivard Store |
P |
0 |
| 5400 |
قهوة باتيل القهوة |
Delivard Store |
P |
0 |
| 5103 |
بريستوت تيزيانو بار بن قهوة |
Delivard Store |
P |
0 |
| 6245 |
آلة تحضير القهوة بالتنقيط باللون الأزرق الباستيل من سميج |
Delivard Store |
P |
0 |
| 5399 |
قهوة باتيل أرابيكا منزوعة الكافيين مطحونة |
Delivard Store |
P |
0 |
| 5201 |
تروتشيلو ميكس بار بن قهوة |
Delivard Store |
P |
0 |
| 5572 |
داركوف شوكولاتة 13 |
Delivard Store |
P |
0 |
| 6116 |
لوحة مفاتيح Apple Folio 12.9 iPad Pro (الجيل الخامس) - Arabic |
Delivard Store |
P |
0 |
| 6253 |
آلة إسبريسو طراز الخمسينيات من سميج مع مطحنة مدمجة باللون الكريمي |
Delivard Store |
P |
0 |
| 10177 |
شاومي واي فاي رينج إكستاندر إن٣٠٠ |
Delivard Store |
P |
0 |
| 5931 |
مايكروتيك BaseBox 5 RB912UAG-5HPnD-OUT |
Delivard Store |
P |
0 |
| 5202 |
تروتشيلو فيلترو كلاسيكو قهوة مطحونة |
Delivard Store |
P |
0 |
| 8375 |
ماوس هاما MW-300 V2 لاسلكي بصري بثلاث أزرار - أخضر |
Delivard Store |
P |
0 |
| 8812 |
هاما 200322 محول شبكة USB‑C إيثرنت جيجابت |
Delivard Store |
P |
0 |