Re: Preventing query from hogging server

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Preventing query from hogging server
Дата
Msg-id 5050.1111693395@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Preventing query from hogging server  ("Matthew Nuzum" <matt.followers@gmail.com>)
Ответы Re: Preventing query from hogging server  ("Matthew Nuzum" <matt.followers@gmail.com>)
Re: Preventing query from hogging server  ("Matthew Nuzum" <matt.followers@gmail.com>)
Список pgsql-performance
"Matthew Nuzum" <matt.followers@gmail.com> writes:
> Here is the query (BTW, there will be a corresponding "max" version of this
> query as well):
> INSERT INTO usage_sessions_min (accountid,atime,sessionid)
> select accountid, min(atime) as atime, sessionid from usage_access
> group by accountid,sessionid;

How many rows in usage_access?  How many groups do you expect?
(Approximate answers are fine.)  What PG version is this, and
what's your sort_mem setting?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_autovacuum not having enough suction ?
Следующее
От: "Matthew Nuzum"
Дата:
Сообщение: Re: Preventing query from hogging server