Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Table Design Question pls help..
In article <e1c9bd55.0410030537.3dc04dd1_at_posting.google.com>, xtanto wrote:
> Hi gurus,
>
> I have two design question, could you please give some reccomendation
>:
I'd go for varchar2, myself, but HJR has already discussed it.
> (2) We have two tables of organization membership, one for 'permanent'
> member , the other for 'non-permanent' member. After two years,
> non-permanent member will become permanent member. The permanent
> member is 4.000.000 rows and the non permanent member is about 200.000
> rows.
> These two tables are separated because there are reports that are only
> dedicated to Non-permanent member, so that the query will be faster.
> BUT there are also reports that combine the two tables using UNION.
> Is using UNION with this amount of rows will cause any bad performance
> ?
> Or these two table should be only one tables using member-type column
> ?
Use one table. Then create two views that can be accessed for the reports with the according privileges. If it turns out to be too slow, create materialized views.
hth
Rene
-- Rene Nyffenegger http://www.adp-gmbh.ch/Received on Mon Oct 04 2004 - 10:37:21 CDT