| От | Justin Pryzby |
|---|---|
| Тема | Re: UNION causes horrible plan on JOIN |
| Дата | |
| Msg-id | 20191028224553.GP23808@telsasoft.com обсуждение исходный текст |
| Ответ на | UNION causes horrible plan on JOIN (Craig James <cjames@emolecules.com>) |
| Ответы |
Re: UNION causes horrible plan on JOIN
|
| Список | pgsql-performance |
On Mon, Oct 28, 2019 at 03:40:58PM -0700, Craig James wrote: > On Postgres 9.6 (config below), I have a case I don't understand: three > tables that can be separately queried in milliseconds, but when put > together into one view using UNION, take 150 seconds to query. Here's the > rough idea (actual details below): Do you want UNION ALL ? UNION without ALL distintifies the output. https://www.postgresql.org/docs/current/sql-select.html#SQL-UNION Justin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера