Re: UNION and bad performance - Mailing list pgsql-performance

From pasman pasmański
Subject Re: UNION and bad performance
Date
Msg-id AANLkTikoRUG9qJv0wZVq-n_RKDX0kOqve3PTKjPwc_MZ@mail.gmail.com
Whole thread Raw
In response to UNION and bad performance  (Olivier Pala <olivier.pala@xgs-france.com>)
Responses Re: UNION and bad performance  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-performance
> UNION will remove all duplicates, so that the result additionally requires to
> be sorted.

>Right, to avoid the SORT and UNIQUE - operation you can use UNION ALL


by the way maybe apply hashing to calculate UNION be better ?


------------
pasman

pgsql-performance by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: UNION and bad performance
Next
From: Robert Haas
Date:
Subject: Re: SELECT INTO large FKyed table is slow