| От | 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
Re: Preventing query from hogging server |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера