Skip site navigation (1) Skip section navigation (2)

Re: UNION and bad performance

From: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: UNION and bad performance
Date: 2010-12-12 13:12:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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 ?



pgsql-performance by date

Next:From: Royce AusburnDate: 2010-12-13 02:43:10
Subject: CPU bound
Previous:From: Andreas KretschmerDate: 2010-12-11 13:45:47
Subject: Re: UNION and bad performance

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group