Re: [GENERAL] on PostgreSQL performance optimization.

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [GENERAL] on PostgreSQL performance optimization.
Дата
Msg-id 367B9177.A6860062@krs.ru
обсуждение исходный текст
Ответ на on PostgreSQL performance optimization.  (Memphisto <szoli@netvisor.hu>)
Список pgsql-general
Memphisto wrote:
>
> Hi,
>
>  For a month I was working on a NS-proxy parser that moved all necessary
> information into a postgreSQL relation. The problem is that this app is
> run every midnight so supposed to be process the information relatively
> fast. It isn't. Today's proxy log is 3041705 bytes and the app is still
> working on it.
>  I'd like to know how to optimize the performance of it. The app does not
> consume too much CPU time, while postgreSQL does. How could I find out if
> what is suboptimal - the scheme of relations or the SQL queries I wrote,
> etc.

First, do you use BEGIN/END to run many queries in one transaction?
Two fsync per query (without BEGIN/END) is great overhead...

And, as usual, man vacuum -:)

Vadim

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

Предыдущее
От: Memphisto
Дата:
Сообщение: on PostgreSQL performance optimization.
Следующее
От: Paulo da Silva
Дата:
Сообщение: Is there a port to Windows95/98?