API SQL Commands Drive High Server Resouces Utilization
Posted: Fri May 24, 2019 11:32 am
My web host throttled my server resources, crippling the web site performance, because MT was consuming excessive server resources.
I made an edit to the api.php file that dramatically reduced utilization, made my host happy, and restored full server resources and web site performance. Thus far I have not seen any unintended consequences.
I need to know if there are any long term issues that could arise. And if not, Jachym would you consider modifying the api.php as I describe below?
My web site hosts 2 different MT sites. The databases have about 1.9M and 1.4M records. The api.php frequently issues the "ALTER TABLE alldata ORDER BY DateTime" sql query, and it would take from 2-18 seconds to complete. This gobbled lots of resources and caused server faults. I checked/optimized the tables, but this didn't change the performance. The graphs of resource use were quite impressive.
So I commented out the line after research indicated the command was an unnecessary task since the table is already indexed. The resource utilization dropped next to nothing except for a few brief spikes.
Is there any reason why I should not also comment out the "ALTER TABLE alldataExtra ORDER BY DateTime" query?
I made an edit to the api.php file that dramatically reduced utilization, made my host happy, and restored full server resources and web site performance. Thus far I have not seen any unintended consequences.
I need to know if there are any long term issues that could arise. And if not, Jachym would you consider modifying the api.php as I describe below?
My web site hosts 2 different MT sites. The databases have about 1.9M and 1.4M records. The api.php frequently issues the "ALTER TABLE alldata ORDER BY DateTime" sql query, and it would take from 2-18 seconds to complete. This gobbled lots of resources and caused server faults. I checked/optimized the tables, but this didn't change the performance. The graphs of resource use were quite impressive.
So I commented out the line after research indicated the command was an unnecessary task since the table is already indexed. The resource utilization dropped next to nothing except for a few brief spikes.
Is there any reason why I should not also comment out the "ALTER TABLE alldataExtra ORDER BY DateTime" query?