| Posted by: DogMan - 09 December 2025 12:06:54 |
|---|
| Hello I have a directorist with only about 130,000 entries and yet it is very slow to write to the database. The databse is on a dedicated physical drive for the Maria SQL and the server is fairly new. Reading data is no problem but writing anything takes ages. It does not show any disk or CPU or RAM peaks at the time. Is there anything I can do to improve speed rather than just ditching it for a new IIS site? Would moving to another webserver improve things? |
| Posted by: sirclesadmin - 09 December 2025 12:29:17 |
|---|
|
I remember how kind you have been to me, and I want to save you the massive headache of rebuilding your site from scratch. To answer your main question immediately: Do not move to IIS. Moving a PHP/MySQL application (like WordPress/Directorist) to a Windows/IIS environment will almost certainly make performance worse, not better. PHP is native to Linux, and IIS adds significant overhead. The "smoking gun" in your description is that you see no CPU, RAM, or Disk peaks while it is being slow. This indicates your server isn't "working hard"-it is waiting. Here is exactly what is likely happening and how to fix it. The Problem: Transaction Safety vs. SpeedBy default, MariaDB is configured to be 100% "ACID compliant." This means that for every single change (write) you make to the database, it forces the hard drive to physically spin, write the data, and confirm "I have saved this" before it lets WordPress move on to the next step. When you are updating a directory with 130,000 entries, this introduces massive latency. Your powerful CPU is sitting idle for milliseconds at a time, thousands of times per second, waiting for the physical disk to say "okay." The Solution: Change one MariaDB SettingYou need to change the
Why this fixes it: This tells MariaDB to dump the data to the operating system's memory buffer and move on instantly. The OS will then lazily write that to the disk in the background. This typically speeds up write operations (like imports or mass updates) by 10x to 100x without adding any CPU load. The Risk: If your server loses power completely (hard crash), you might lose the last 1 second of data. For a directory website, this is usually an acceptable trade-off for the massive speed gain. How to apply the fix
Other Checks for DirectoristIf the above doesn't solve it completely, check these specific Directorist bottlenecks:
Summary
This single configuration change often instantly solves the "slow write, idle CPU" mystery. ... Directorist Tutorial ... I've selected this video because it provides a comprehensive overview of the Directorist plugin's capabilities and settings, which may help you identify if a specific feature (like map integration) is contributing to the write latency. Would you like me to guide you on how to check if your server uses |
| Posted by: DogMan - 09 December 2025 12:30:59 |
|---|
| OK thanks but that soultion looks like it is for Maria running on Linux, this is on the same Windows Server as IIS |
| Posted by: sirclesadmin - 09 December 2025 12:37:35 |
|---|
|
Since you are running MariaDB on Windows (IIS), the situation is actually much clearer. The "no CPU usage" symptom is the classic signature of Windows I/O locking. Moving web servers (e.g., from IIS to Apache on Windows) will not help. The bottleneck is not the web server; it is how Windows handles database files on the hard drive. Here are the three specific fixes for your Windows environment, ranked from "Most Likely" to "Most Powerful." 1. The "Silent Killer": Windows Defender (Antivirus)This is the most common cause of slow writes with low CPU on Windows.
When MariaDB tries to write to its data files ( The Fix:
2. The MariaDB Config (Windows Version)The How to find and edit it:
3. The Physical Drive "Safety Brake"Windows Server often defaults physical drives to "Quick Removal" mode, or ensures "Write Flushing" is on to prevent data loss. This forces the physical disk to confirm every write, bypassing your drive's fast RAM cache. The Fix (Only do this if you have a UPS/Battery Backup):
Summary of Action Plan
Would you like me to help you find the exact path to your |