Callback
  • From a market stall to a store

  • -

  • From a store to a retail chain

  • -

  • From retail to manufacturing

10 tips for optimizing server and Commerce software performance

Block 1. Hardware and power supply

1. Using SSD instead of HDD

For the normal operation of the database (DB), high read and write speed is critically necessary, therefore the use of an SSD is mandatory. Using old HDD drives (especially with damaged sectors) leads to severe freezing and increases the risk of the database entering an emergency state (Suspect or Recovery Pending).

2. Control of free disk space

On the disk where the DB and program directories are installed, it is necessary to always maintain a sufficient margin of free space (preferably at least 15-20%). Disk overflow (especially of the system drive C) is guaranteed to lead to archiving errors, the inability to update the program, and critical failures in SQL Server operation.

3. Uninterruptible power supply (UPS)

A PC with a database (server) must be connected to a UPS. A sudden power outage is the most common cause of DB damage (transition to the Suspect state), damage to system database files (.ldf or .mdf), and data loss.

Block 2. Windows OS settings

4. Prohibition of sleep and hibernation modes

On the server or main PC, it is strictly forbidden to use sleep mode, hibernation, or configure automatic hard disk shutdown. The PC power plan must be set to "High performance" to avoid connection drops with the DB over the local network.

5. Antivirus and Firewall settings

Windows Defender and third-party antiviruses (Avast, 360 Total Security, etc.) often mistakenly block or quarantine the program's executable files (torgsoft.exe, TorgsoftLicenseService.exe, etc.). To avoid this:

add the C:\TORGSOFT directory (or another one where the program is installed) and all executable files to the antivirus exceptions (whitelist).
in the Firewall, be sure to create rules for inbound and outbound connections allowing operation on ports 1433, 1434 (for SQL Server) and 6001 (for the application server).

6. Optimization of background processes and memory

Disable startup programs and unnecessary background services (Xbox Game DVR, OneDrive, Cortana). Do not use the server for web surfing: browsers (for example, Google Chrome) or messengers (Telegram) can consume over 2 GB of RAM, which will be critically lacking for SQL Server, resulting in a complete freeze of Torgsoft.

7. Regular server reboot

Set up automatic server reboot (via Task Scheduler) at least 2-3 times a week during non-working hours (for example, at night). This frees up RAM, resets hung sessions, and prevents system "slowdowns".

Block 3. Database and SQL Server maintenance

8. Moving the program to a non-system drive

It is advisable to place the program directory and database on the D: drive (or another non-system drive). If the program is already on the C drive, moving is possible according to a clear algorithm:

1
stop the TorgSoftService, TorgsoftLicenceService, and SQL Server services.
2
detach the database in SQL Server Management Studio.
3
copy the database files (.mdf, .ldf) and the PROGRAM directory to the new drive.
4
reattach the database via SQL Management Studio.
5
edit the paths in the configuration files (in particular, change the paths in the registry, replace the Win.dat file) and start the services.

9. Using the full version of SQL Server

The free version of SQL Server (Express), which is installed by default, has hardware limitations: it uses only 1.4 GB of RAM and has a database size limit of 10 GB. If the database reaches 10 GB, the program stops or operates with critical delays. To solve this problem, you need to upgrade to paid versions of SQL Server (Standard or Enterprise), which do not have such limits.

Block 4. Optimization using Torgsoft tools

10. Working with periods, statistics, and cost price

Closing periods: regularly close outdated periods (months). This fixes the cost price and sharply accelerates the generation of reports and analyzes.
Database cleaning: if the database expands, use the option "Delete statistics of closed periods". This physically removes old warehouse and financial documents, leaving only the final balances of goods and debts, which significantly reduces the size of the database (after this, the database must be shrunk (Shrink) via SQL).
Indexes: periodically perform the service action "Restore and reorganize indexes and update statistics" — this organizes the data and speeds up the program.
Cost price: set up automatic calculation of the cost price at night according to a schedule. If you run it during the day while the store is actively working, the program will freeze severely. Never interrupt the cost price calculation by forcefully turning off the computer.