| От | Tom Lane |
|---|---|
| Тема | Re: Problem with large query |
| Дата | |
| Msg-id | 20149.1094654443@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Problem with large query (Marc Cousin <mcousin@sigma.fr>) |
| Ответы |
Re: Problem with large query
Re: Problem with large query |
| Список | pgsql-performance |
Marc Cousin <mcousin@sigma.fr> writes:
> I'm having trouble with a (quite big) query, and can't find a way to make it
> faster.
Seems like it might help if the thing could use a HashAggregate instead
of sort/group. Numeric is not hashable, so having those TO_NUMBER
constants in GROUP BY destroys this option instantly ... but why in the
world are you grouping by constants anyway? You didn't say what the
datatypes of the other columns were...
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера