Re: Query Performance SQL Server vs. Postgresql

Поиск
Список
Период
Сортировка
От tv@fuzzy.cz
Тема Re: Query Performance SQL Server vs. Postgresql
Дата
Msg-id fe8b9f344e9575056f79658e6c639d4d.squirrel@sq.gransy.com
обсуждение исходный текст
Ответ на Re: Query Performance SQL Server vs. Postgresql  (Samuel Gendler <sgendler@ideasculptor.com>)
Список pgsql-performance
> I believe you can set work_mem to a different value just for the duration
> of
> a single query, so you needn't have work_mem set so high if for every
> query
> on the system.  A single query may well use a multiple of work_mem, so you
> really probably don't want it that high all the time unless all of your
> queries are structured similarly.  Just set work_mem='2047MB'; query;
> reset
> all;

Yes, executing "set work_mem='64MB'" right before the query should be just
fine. Setting work_mem to 2GB is an overkill most of the time (99.99999%).

Tomas


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

Предыдущее
От: Samuel Gendler
Дата:
Сообщение: Re: Query Performance SQL Server vs. Postgresql
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Slow SELECT on small table