Query time 0.00412
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "84.72"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"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": "6K"
},
"used_columns": [
"company_id",
"status",
"company"
]
}
},
{
"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": "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": 166,
"rows_produced_per_join": 166,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.28",
"eval_cost": "16.60",
"prefix_cost": "17.88",
"data_read_per_join": "2K"
},
"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": 8,
"filtered": "5.00",
"cost_info": {
"read_cost": "41.50",
"eval_cost": "0.83",
"prefix_cost": "75.98",
"data_read_per_join": "36K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`products`.`parent_product_id` = 0) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`company_id` = 1) 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": 8,
"filtered": "99.93",
"cost_info": {
"read_cost": "2.08",
"eval_cost": "0.83",
"prefix_cost": "78.89",
"data_read_per_join": "199"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.07",
"eval_cost": "0.83",
"prefix_cost": "81.79",
"data_read_per_join": "265"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.11",
"eval_cost": "0.83",
"prefix_cost": "84.73",
"data_read_per_join": "37K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 8594 |
هاما 217224 غلاف شفاف قابل للطي لجهاز Apple iPad 10.9" (الجيل العاشر 2022)، ليلكي |
Delivard Store |
P |
0 |
| 8457 |
هاما 227041 غطاء لوحي "Fold Clear" مع حافظة قلم لجهاز iPad Pro 11" 2024-2025 – أسود |
Delivard Store |
P |
0 |
| 8828 |
هاما 123765 غلاف Extreme Protect لهاتف iPhone 16 Pro – شفاف |
Delivard Store |
P |
0 |
| 8466 |
هاما 227047 غلاف تابلت Fold Clear واقٍ مع حامل قلم مدمج لآيباد برو 13" (2025/2024) – أسود |
Delivard Store |
P |
0 |
| 8831 |
هاما 136853 غطاء شفاف لهاتف iPhone 16 Plus |
Delivard Store |
P |
0 |
| 8276 |
حامي حواف هاما Finest Feel لجهاز أيرتاغ من آبل – أحمر |
Delivard Store |
P |
0 |
| 8365 |
هاما كفر فاينست فيل ماج كيس لآيفون 16 برو – أسود 123770 |
Delivard Store |
P |
0 |
| 8585 |
هاما 136022 غلاف Fantastic Feel لهاتف iPhone 15 Pro – أزرق |
Delivard Store |
P |
0 |
| 8615 |
هاما 217232 غلاف Velvet لجهاز Apple iPad 11" (2025) / iPad 10.9" (2022)، لون بترولي |
Delivard Store |
P |
0 |
| 8729 |
هاما 80582 غلاف Fantastic Feel لهاتف Samsung Galaxy S25 Ultra – أسود |
Delivard Store |
P |
0 |
| 8730 |
هاما 123753 غلاف Extreme Protect لجهاز آيفون 16 شفاف‑أسود |
Delivard Store |
P |
0 |
| 8797 |
هاما 80581 غلاف Extreme Protect لهاتف سامسونج Galaxy S25 Ultra – أسود |
Delivard Store |
P |
0 |
| 8810 |
هاما 222021 غلاف Fold Clear مع حجرة قلم لـ iPad Mini 8.3″ – أسود |
Delivard Store |
P |
0 |
| 8814 |
هاما 217233 غلاف Velvet لجهاز iPad 11″ / 10.9″ – لون رمالي |
Delivard Store |
P |
0 |
| 8829 |
هاما 136024 غلاف Feel MagCase خلفي لهاتف iPhone 15 Pro - أسود |
Delivard Store |
P |
0 |
| 8244 |
هاما ماج كيس اكستريم بروتيكت لهاتف آيفون 16 برو ماكس – شفاف |
Delivard Store |
P |
0 |
| 8277 |
هاما 215516 غطاء حماية MagCase للواجهة الخلفية لآيفون 14 – شفاف |
Delivard Store |
P |
0 |
| 8377 |
هاما جراب حماية Cam Protect لهاتف أيفون 15 برو ماكس – شفاف/أزرق |
Delivard Store |
P |
0 |
| 8403 |
هاما جراب فانتاستيك فيل لهاتف آيفون 16 – أزرق – 123756 |
Delivard Store |
P |
0 |
| 8431 |
هاما 123768 حافظة فانتاستيك فيل لهاتف آيفون 16 برو – أزرق |
Delivard Store |
P |
0 |
| 8587 |
هاما 217222 غلاف شفاف قابل للطي لجهاز Apple iPad 10.9" (الجيل العاشر 2022)، أسود |
Delivard Store |
P |
0 |
| 8798 |
هاما 80577 غلاف Always Clear للهاتف سامسونج Galaxy S25 Ultra – شفاف |
Delivard Store |
P |
0 |
| 8271 |
هاما 215550 غطاء خلفي واقٍ MagCase لهاتف أبل آيفون 14 بلس، شفاف |
Delivard Store |
P |
0 |
| 8274 |
هاما 136861 غطاء Always Clear لجهاز آيفون 16 برو ماكس، شفاف |
Delivard Store |
P |
0 |