Re: How to union table without union statement?

From: calendarw <calendarw(at)gmail(dot)com>
To: "Shane Ambler" <pgsql(at)sheeky(dot)biz>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to union table without union statement?
Date: 2007-03-07 01:16:43
Message-ID: 9d91f7aa0703061716r3698d2a6jc719916ed5a9d86e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I think the tables should contain 50k rows of record and it should be insert
7k rows per month. And the condition of the database is running, so it
should not change the tables to partitioning right now.

I am looking for some JOIN statement but still doesn't understand how to use
JOIN to replace UNION, so dose anyone can give me direction?

Thanks.

On 3/1/07, Shane Ambler <pgsql(at)sheeky(dot)biz> wrote:
>
> Have you done an EXPLAIN on the query?
> Is there an index on the tagname columns?
> If so does the EXPLAIN show them being used?
>
> How many rows do you have in each table (roughly)?
>
> Have you considered other structure options like partitioning?
> Is there a real need to have these tables separate? or could you have
> them all in one table with an column to identify the source of the log
> entry?
>

--
Jr. P
calendarw

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message gherzig 2007-03-07 03:28:57 Re: best index for ~ ordering?
Previous Message Andrew Sullivan 2007-03-06 22:28:02 Re: best index for ~ ordering?