pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: calendarw <calendarw@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to union table without union statement?
Date: Wed, 28 Feb 2007 11:05:40 +0000
Message-ID: <45E56204.1040202@archonet.com> (raw)
In-Reply-To: <9d91f7aa0702280233r7c91dedav1ddfaffa92877280@mail.gmail.com>
References: <9d91f7aa0702280233r7c91dedav1ddfaffa92877280@mail.gmail.com>

calendarw wrote:
> Hi,
> 
> I need to combine 10 tables which contain same table structure and join an
> "other table" to show the latest 200 record, I am join the "other table"
> first and using union statement to select all record now but the collection
> time is super slow, how can I improve the collection speed?

Start by providing the information needed to diagnose the problem.

Post the output of EXPLAIN ANALYSE <query> along with the query SQL and 
any table definitions/sizes you think are useful.

-- 
   Richard Huxton
   Archonet Ltd



view thread (5+ messages)  latest in thread

Message-ID: <45E56204.1040202@archonet.com>
Permalink:  ../45E56204.1040202@archonet.com/
Also on:    postgresql.org/message-id/45E56204.1040202@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, calendarw@gmail.com
  Subject: Re: How to union table without union statement?
  In-Reply-To: <45E56204.1040202@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox