Re: optimising UNION performance

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: Rafal Pietrak <rafal(at)zorro(dot)isa-geek(dot)com>
Subject: Re: optimising UNION performance
Date: 2006-08-28 08:56:30
Message-ID: 200608281056.30900.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am Montag, 28. August 2006 10:23 schrieb Rafal Pietrak:
> Is there a way to speed up the query to my 'grand total' logfile,
> constructed as a UNION of smaller (specialised) logfiles?

If it is sufficient for your purpose, you will find UNION ALL to be
significantly faster.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2006-08-28 08:56:39 Re: speeding up big query lookup
Previous Message Bjørn T Johansen 2006-08-28 08:48:47 Convert time to millisec?