Re: Running PostgreSQL as fast as possible no matter the consequences

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Running PostgreSQL as fast as possible no matter the consequences
Дата
Msg-id m2mxpj6c6d.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Re: Running PostgreSQL as fast as possible no matter the consequences  ("Lello, Nick" <nick.lello@rentrakmail.com>)
Список pgsql-performance
"Lello, Nick" <nick.lello@rentrakmail.com> writes:
> A bigger gain can probably be had if you have a tightly controlled
> suite of queries that will be run against the database and you can
> spend the time to tune each to ensure it performs no sequential scans
> (ie: Every query uses index lookups).

Given a fixed pool of queries, you can prepare them in advance so that
you don't usually pay the parsing and planning costs. I've found that
the planning is easily more expensive than the executing when all data
fits in RAM.

Enter pgbouncer and preprepare :
  http://wiki.postgresql.org/wiki/PgBouncer
  http://preprepare.projects.postgresql.org/README.html

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support

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

Предыдущее
От: "Pierre C"
Дата:
Сообщение: Re: Select * is very slow
Следующее
От: Klaus Ita
Дата:
Сообщение: Re: Running PostgreSQL as fast as possible no matter the consequences