Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As highlighted above the problem is not with the particular database you are using, i.e. PostgreSQL but one of the following:</p> <ul> <li>Schema design, maybe you need to add, remove, refine your indexes</li> <li>Hardware maybe you are asking to much of your server - you said 5k users but then again very few of them are probably querying the db at the same time</li> <li>Queries: perhaps poorly defined resulting in lots of inefficiency</li> </ul> <p>A pragmatic way to find out what is happening is to analyse the PostgeSQL log files and find out what queries in terms of:</p> <ul> <li>Most frequently executed</li> <li>Longest running</li> <li>etc. etc.</li> </ul> <p>A quick review will tell you where to focus your efforts and you will most likely resolve your issues fairly quickly. There is no silver bullet, you have to do some homework but this will be small compared to changing your db vendor.</p> <p>Good news ... there are lots of utilities to analayse your log files that are easy to use and produce easy to interpret results, here are two:</p> <p><a href="http://pgfouine.projects.postgresql.org/" rel="nofollow noreferrer" title="pgFouine - a PostgreSQL log analyzer">pgFouine - a PostgreSQL log analyzer (PHP)</a></p> <ul> <li><a href="http://pgfouine.projects.postgresql.org/reports/sample_default.html" rel="nofollow noreferrer">pgFouine: Sample report</a></li> </ul> <p><a href="http://pqa.projects.postgresql.org/" rel="nofollow noreferrer" title="Practical Query Analysis">PQA (ruby)</a></p> <ul> <li><a href="http://pqa.projects.postgresql.org/example.html" rel="nofollow noreferrer">PQA: Sample report</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload