Adjusted for optimum performance

Enhancing business success through smarter korea database management discussions.
Post Reply
poxoja9630
Posts: 10
Joined: Sun Dec 22, 2024 5:31 am

Adjusted for optimum performance

Post by poxoja9630 »

Response times increase non-linearly, but they still increase, even on the smallest tests. To better visualize these differences, I created another series of charts. For each query period I tested, the following charts compare the two databases at each concurrency point. PostgreSQL / SQLite Comparison Tables These graphs clearly show that PostgreSQL can handle small and medium queries much better than SQLite, to the point that increasing concurrency has very little impact on response times, which is great. SQLite is more directly affected by concurrency for all query sizes, and while it performs worse for small and medium queries, it is significantly better than PostgreSQL for longer queries.

Adjusted for optimum performance So far I haven't bothered with database whatsapp philippines number configuration, I just assumed that the default configuration would be sufficient. In the case of SQLite there is not much to configure , but PostgreSQL has some tuning levers. After looking through the configuration options related to memory usage , I found the option work_memthat configures the amount of memory each query can use before it starts storing data in temporary disk files. The default value for this option is 4 MB. I changed it to 16 MB: Text Copy the code work_mem = 16MB The week, month, and quarter tests had similar response times to the previous tests.

Image

But this change helped improve longer queries. Below are the graphs for 1, 2, and 4 clients after rerunning the PostgreSQL tests for a year: PostgreSQL / SQLite comparison table PostgreSQL / SQLite comparison table PostgreSQL / SQLite comparison table With this change, the rows became uncrossed and PostgreSQL started returning faster than SQLite, even for the longest queries. For the heaviest test, with yearly queries and four clients, response times dropped from 14 seconds to 6 seconds with the memory-optimized database server. These queries are still slower than I would like, but since I'm using an entry-level platform, I think they're reasonable.

Conclusion As you can probably guess, based on the results I got, I decided to move to PostgreSQL. After upgrading the production system,
Post Reply