Re: Need help in performance tuning.

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Need help in performance tuning.
Дата
Msg-id 4C369346.6010501@postnewspapers.com.au
обсуждение исходный текст
Ответ на Need help in performance tuning.  (Harpreet singh Wadhwa <harpreetsingh.wadhwa@gmail.com>)
Ответы Re: Need help in performance tuning.  (Samuel Gendler <sgendler@ideasculptor.com>)
Список pgsql-performance
On 9/07/2010 3:20 AM, Harpreet singh Wadhwa wrote:
> Hi,
>
>
> I want to fine tune my postgresql to increase number of connects it
> can handle in a minutes time.
> Decrease the response time per request etc.
> The exact case will be to handle around 100 concurrent requests.

If you're not using a connection pool, start using one.

Do you really need 100 *active* working query threads at one time?
Because if you do, you're going to need a scary-big disk subsystem and a
lot of processors.

Most people actually only need a few queries executing simultaneously,
they just need lots of connections to the database open concurrently
and/or lots of queries queued up for processing. For that purpose, a
connection pool is ideal.

You will get BETTER performance from postgresql with FEWER connections
to the "real" database that're all doing active work. If you need lots
and lots of connections you should use a connection pool to save the
main database the overhead of managing that.

--
Craig Ringer

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: performance on new linux box
Следующее
От: Samuel Gendler
Дата:
Сообщение: Re: Need help in performance tuning.