Query time 0.00405
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "80.11"
},
"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": 87,
"rows_produced_per_join": 87,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (87,92,94,90,85,76,89,527,538,536,539))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "33.21",
"eval_cost": "8.70",
"prefix_cost": "43.47",
"data_read_per_join": "1K"
},
"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": "5.00",
"cost_info": {
"read_cost": "21.75",
"eval_cost": "0.44",
"prefix_cost": "73.92",
"data_read_per_join": "19K"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.18",
"eval_cost": "0.87",
"prefix_cost": "76.97",
"data_read_per_join": "139"
},
"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": "2.18",
"eval_cost": "0.04",
"prefix_cost": "80.01",
"data_read_per_join": "1K"
},
"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.06",
"eval_cost": "0.04",
"prefix_cost": "80.11",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 1322 |
100 |
سامسونج جالاكسي A56 5G |
Delivard Store |
76 |
V |
1319 |
| 1262 |
100 |
سامسونج جالاكسي A56 5G |
Delivard Store |
76 |
V |
1319 |
| 1317 |
100 |
سامسونج جالاكسي A56 5G |
Delivard Store |
76 |
V |
1319 |
| 1318 |
100 |
سامسونج جالاكسي A56 5G |
Delivard Store |
76 |
V |
1319 |
| 1319 |
100 |
سامسونج جالاكسي A56 5G |
Delivard Store |
76 |
P |
0 |
| 1320 |
100 |
سامسونج جالاكسي A56 5G |
Delivard Store |
76 |
V |
1319 |
| 1321 |
100 |
سامسونج جالاكسي A56 5G |
Delivard Store |
76 |
V |
1319 |
| 1256 |
100 |
سامسونج جالاكسي A06 |
Delivard Store |
85 |
P |
0 |
| 1395 |
100 |
سامسونج جالاكسي A06 |
Delivard Store |
85 |
V |
1256 |
| 1396 |
100 |
سامسونج جالاكسي A06 |
Delivard Store |
85 |
V |
1256 |
| 1397 |
100 |
سامسونج جالاكسي A06 |
Delivard Store |
85 |
V |
1256 |
| 1399 |
100 |
سامسونج جالاكسي A06 |
Delivard Store |
85 |
V |
1256 |
| 1406 |
100 |
سامسونج جالاكسي S24 FE |
Delivard Store |
87 |
P |
0 |
| 1407 |
100 |
سامسونج جالاكسي S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1408 |
100 |
سامسونج جالاكسي S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1409 |
100 |
سامسونج جالاكسي S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1410 |
100 |
سامسونج جالاكسي S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1411 |
100 |
سامسونج جالاكسي S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1412 |
100 |
سامسونج جالاكسي S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1273 |
500 |
سامسونج جالاكسي Z فولد6 |
Delivard Store |
89 |
P |
0 |
| 1425 |
100 |
سامسونج جالاكسي A55 5G |
Delivard Store |
90 |
V |
1428 |
| 1427 |
100 |
سامسونج جالاكسي A55 5G |
Delivard Store |
90 |
V |
1428 |
| 1428 |
99 |
سامسونج جالاكسي A55 5G |
Delivard Store |
90 |
P |
0 |
| 1429 |
100 |
سامسونج جالاكسي A55 5G |
Delivard Store |
90 |
V |
1428 |
| 1431 |
100 |
سامسونج جالاكسي A55 5G |
Delivard Store |
90 |
V |
1428 |
| 1266 |
99 |
سامسونج جالاكسي S24 ألترا |
Delivard Store |
92 |
P |
0 |
| 1442 |
500 |
سامسونج جالاكسي S24 ألترا |
Delivard Store |
92 |
V |
1266 |
| 1447 |
500 |
سامسونج جالاكسي S24 ألترا |
Delivard Store |
92 |
V |
1266 |
| 1263 |
500 |
سامسونج جالاكسي S24 |
Delivard Store |
94 |
P |
0 |
| 1458 |
500 |
سامسونج جالاكسي S24 |
Delivard Store |
94 |
V |
1263 |
| 4526 |
100 |
هاتف سامسونج جالكسي S25 ألترا |
Delivard Store |
527 |
P |
0 |
| 4527 |
100 |
هاتف سامسونج جالكسي S25 ألترا |
Delivard Store |
527 |
V |
4526 |
| 4528 |
100 |
هاتف سامسونج جالكسي S25 ألترا |
Delivard Store |
527 |
V |
4526 |
| 4529 |
100 |
هاتف سامسونج جالكسي S25 ألترا |
Delivard Store |
527 |
V |
4526 |
| 4530 |
100 |
هاتف سامسونج جالكسي S25 ألترا |
Delivard Store |
527 |
V |
4526 |
| 4532 |
100 |
هاتف سامسونج جالكسي S25 ألترا |
Delivard Store |
527 |
V |
4526 |
| 4533 |
100 |
هاتف سامسونج جالكسي S25 ألترا |
Delivard Store |
527 |
V |
4526 |
| 4744 |
100 |
سامسونج جالاكسي A36 5G |
Delivard Store |
536 |
P |
0 |
| 4745 |
100 |
سامسونج جالاكسي A36 5G |
Delivard Store |
536 |
V |
4744 |
| 4746 |
100 |
سامسونج جالاكسي A36 5G |
Delivard Store |
536 |
V |
4744 |
| 4747 |
100 |
سامسونج جالاكسي A36 5G |
Delivard Store |
536 |
V |
4744 |
| 4750 |
100 |
سامسونج جالاكسي A36 5G |
Delivard Store |
536 |
V |
4744 |
| 4751 |
100 |
سامسونج جالاكسي A36 5G |
Delivard Store |
536 |
V |
4744 |
| 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 |
| 4788 |
100 |
سامسونج جالاكسي Z فليب 7 |
Delivard Store |
539 |
V |
4789 |
| 4789 |
100 |
سامسونج جالاكسي Z فليب 7 |
Delivard Store |
539 |
P |
0 |
| 4790 |
100 |
سامسونج جالاكسي Z فليب 7 |
Delivard Store |
539 |
V |
4789 |