Query time 0.00364
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.85"
},
"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": 28,
"rows_produced_per_join": 28,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (399,958,698,385,319,798,676,472))",
"cost_info": {
"read_cost": "11.81",
"eval_cost": "2.80",
"prefix_cost": "14.61",
"data_read_per_join": "448"
},
"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": 4,
"filtered": "17.71",
"cost_info": {
"read_cost": "7.00",
"eval_cost": "0.50",
"prefix_cost": "24.41",
"data_read_per_join": "21K"
},
"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.24",
"eval_cost": "0.05",
"prefix_cost": "26.15",
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "26.49",
"data_read_per_join": "15"
},
"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.25",
"eval_cost": "0.00",
"prefix_cost": "26.84",
"data_read_per_join": "159"
},
"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.00",
"prefix_cost": "26.85",
"data_read_per_join": "231"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 3023 |
100 |
هواوي فري بودز إس إي 3 |
Delivard Store |
319 |
P |
0 |
| 3024 |
100 |
هواوي فري بودز إس إي 3 |
Delivard Store |
319 |
V |
3023 |
| 3401 |
100 |
باور بانك بيلكن BoostCharge Qi2 Magnetic لاسلكي بقوة 15 واط بسعة 10,000 مللي أمبير مع حامل |
Delivard Store |
385 |
P |
0 |
| 3402 |
100 |
باور بانك بيلكن BoostCharge Qi2 Magnetic لاسلكي بقوة 15 واط بسعة 10,000 مللي أمبير مع حامل |
Delivard Store |
385 |
V |
3401 |
| 3522 |
100 |
كيبل بيلكين مضفر USB-C إلى USB-C 2.0 بقدرة 100 واط، طول 2 متر |
Delivard Store |
399 |
P |
0 |
| 3523 |
100 |
كيبل بيلكين مضفر USB-C إلى USB-C 2.0 بقدرة 100 واط، طول 2 متر |
Delivard Store |
399 |
V |
3522 |
| 4130 |
100 |
اي داتا HD650 قرص صلب خارجي مقاوم للصدمات - ٢ تيرابايت |
Delivard Store |
472 |
P |
0 |
| 4131 |
100 |
اي داتا HD650 قرص صلب خارجي مقاوم للصدمات - ٢ تيرابايت |
Delivard Store |
472 |
V |
4130 |
| 4132 |
100 |
اي داتا HD650 قرص صلب خارجي مقاوم للصدمات - ٢ تيرابايت |
Delivard Store |
472 |
V |
4130 |
| 6101 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
P |
0 |
| 6102 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6103 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6104 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6105 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6106 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6107 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6108 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6109 |
100 |
حلقة مفاتيح Apple AirTag FineWoven |
Delivard Store |
676 |
V |
6101 |
| 6266 |
100 |
Dyson العناية بالشعر HS08 |
Delivard Store |
698 |
P |
0 |
| 6267 |
100 |
Dyson العناية بالشعر HS08 |
Delivard Store |
698 |
V |
6266 |
| 6268 |
99 |
Dyson العناية بالشعر HS08 |
Delivard Store |
698 |
V |
6266 |
| 6269 |
100 |
Dyson العناية بالشعر HS08 |
Delivard Store |
698 |
V |
6266 |
| 5985 |
100 |
لـ جـي تلفزيون ذكي UA85 UHD AI 4K مقاس بوصة بريموت ماجيك HDR10 WebOS25 (2025) |
Delivard Store |
798 |
P |
0 |
| 8264 |
100 |
LG UHD AI UA85 4K Smart TV AI Magic remote HDR10 WebOS25 2025 |
Delivard Store |
798 |
P |
0 |
| 10135 |
100 |
سامسونج OLED S85F تلفزيون ذكي 4K مقاس 55 بوصة |
Delivard Store |
958 |
P |
0 |
| 10136 |
100 |
Samsung S85F OLED 4K Smart TV |
Delivard Store |
958 |
P |
0 |
| 10137 |
100 |
Samsung S85F OLED 4K Smart TV |
Delivard Store |
958 |
P |
0 |
| 10138 |
100 |
Samsung S85F OLED 4K Smart TV |
Delivard Store |
958 |
P |
0 |