Query time 0.00424
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.93"
},
"ordering_operation": {
"using_filesort": false,
"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": "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": 36,
"rows_produced_per_join": 36,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (547,506,231,812,307,501,503,538))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "14.61",
"eval_cost": "3.60",
"prefix_cost": "19.77",
"data_read_per_join": "576"
},
"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": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "0.18",
"prefix_cost": "32.37",
"data_read_per_join": "7K"
},
"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`.`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": "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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.90",
"eval_cost": "0.36",
"prefix_cost": "33.63",
"data_read_per_join": "57"
},
"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.90",
"eval_cost": "0.02",
"prefix_cost": "34.89",
"data_read_per_join": "577"
},
"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.02",
"eval_cost": "0.02",
"prefix_cost": "34.93",
"data_read_per_join": "840"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 2587 |
99 |
سماعة JBL Tune 110 |
Delivard Store |
231 |
P |
0 |
| 2588 |
100 |
سماعة JBL Tune 110 |
Delivard Store |
231 |
V |
2587 |
| 2589 |
100 |
سماعة JBL Tune 110 |
Delivard Store |
231 |
V |
2587 |
| 2590 |
100 |
سماعة JBL Tune 110 |
Delivard Store |
231 |
V |
2587 |
| 2927 |
100 |
سماعات أنكر ساوندكور K20i اللاسلكية (TWS) |
Delivard Store |
307 |
P |
0 |
| 2928 |
100 |
سماعات أنكر ساوندكور K20i اللاسلكية (TWS) |
Delivard Store |
307 |
V |
2927 |
| 2929 |
100 |
سماعات أنكر ساوندكور K20i اللاسلكية (TWS) |
Delivard Store |
307 |
V |
2927 |
| 4269 |
100 |
إيه داتا HD720 قرص صلب خارجي – 1TB |
Delivard Store |
501 |
P |
0 |
| 4270 |
100 |
إيه داتا HD720 قرص صلب خارجي – 1TB |
Delivard Store |
501 |
V |
4269 |
| 4276 |
100 |
إيه داتا UC310 فلاش ميموري USB 3.2 Gen1 – 64GB |
Delivard Store |
503 |
P |
0 |
| 4278 |
100 |
إيه داتا UC310 فلاش ميموري USB 3.2 Gen1 – 64GB |
Delivard Store |
503 |
V |
4276 |
| 4297 |
100 |
اسم المنتج بالعربية: قرص صلب خارجي ADATA HD330 - سعة 2 تيرابايت |
Delivard Store |
506 |
P |
0 |
| 4298 |
100 |
اسم المنتج بالعربية: قرص صلب خارجي ADATA HD330 - سعة 2 تيرابايت |
Delivard Store |
506 |
V |
4297 |
| 4299 |
100 |
اسم المنتج بالعربية: قرص صلب خارجي ADATA HD330 - سعة 2 تيرابايت |
Delivard Store |
506 |
V |
4297 |
| 4776 |
100 |
سامسونج جالاكسي A26 |
Delivard Store |
538 |
V |
4767 |
| 4778 |
100 |
سامسونج جالاكسي A26 |
Delivard Store |
538 |
V |
4767 |
| 4780 |
100 |
سامسونج جالاكسي A26 |
Delivard Store |
538 |
V |
4767 |
| 4771 |
100 |
سامسونج جالاكسي A26 |
Delivard Store |
538 |
V |
4767 |
| 4773 |
100 |
سامسونج جالاكسي A26 |
Delivard Store |
538 |
V |
4767 |
| 4767 |
100 |
سامسونج جالاكسي A26 |
Delivard Store |
538 |
P |
0 |
| 4899 |
100 |
آبل آيفون 16e كيس سيليكون |
Delivard Store |
547 |
V |
4894 |
| 4898 |
100 |
آبل آيفون 16e كيس سيليكون |
Delivard Store |
547 |
V |
4894 |
| 4897 |
100 |
آبل آيفون 16e كيس سيليكون |
Delivard Store |
547 |
V |
4894 |
| 4896 |
100 |
آبل آيفون 16e كيس سيليكون |
Delivard Store |
547 |
V |
4894 |
| 4894 |
100 |
آبل آيفون 16e كيس سيليكون |
Delivard Store |
547 |
P |
0 |
| 2432 |
100 |
Xiaomi TV A Pro 2026 75" |
Delivard Store |
812 |
P |
0 |
| 8485 |
100 |
Xiaomi TV A Pro 2026 65" |
Delivard Store |
812 |
P |
0 |
| 8484 |
100 |
Xiaomi TV A Pro 2026 55" |
Delivard Store |
812 |
P |
0 |
| 8483 |
100 |
Xiaomi TV A Pro 2026 43" |
Delivard Store |
812 |
P |
0 |