PostgreSQL / SQLite comparison table It's clear that PostgreSQL returns results faster and is particularly efficient for shorter queries. PostgreSQL's response times increase more or less linearly as the query period lengthens, but it's interesting to note that SQLite's response time remained nearly stable for the first three tests, before collapsing in the last test. Below are the graphs for the same test with 2 and 4 simultaneous clients. PostgreSQL / SQLite comparison table PostgreSQL / SQLite comparison table I found it interesting that changing concurrency doesn't seem to have a big impact on response times for most tests, probably due to the multiple cores I have on this laptop.
The only time it does make a difference is for yearly queries, where PostgreSQL seems whatsapp philippines number to suffer more than SQLite. To help you visualize this, below is a graph that shows the response times of the PostgreSQL tests, comparing the three concurrency levels for each of the query periods. PostgreSQL Graph This confirms that for queries involving a small to medium number of rows, a concurrency of up to four clients does not significantly affect response times. However, as the number of rows involved increases, higher concurrency starts to slow things down. Here is the same graph for SQLite: SQLite Chart This is actually a surprise, because it shows that SQLite is much better at handling concurrent loads than PostgreSQL on this system.
Sure, response times are slower, but the fact that concurrency has less impact on those response times is very interesting. Will the production platform give similar results? I suspect that a single processor, compared to the 6 in my laptop, will make concurrency a much bigger factor in the results. Test on production system Armed with a now well-tested benchmarking script, I started a new Linode with a clone of the production system, repeated all the steps to migrate the SQLite database to PostgreSQL, and made sure that I could, once again, easily switch databases by editing the configuration file and restarting the service.
The only time it does make
-
- Posts: 10
- Joined: Sun Dec 22, 2024 5:32 am