Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Design question
Oracle 10.1 on Sun V210
All, I have a table (which I will call table1) that contains rows with half a dozen unique values (eg. 'A', 'B', 'C'). There are not null FK to these values from a number of other tables (collectively called tablesN).
My question is:
Queries are made all the time showing for example "WHERE tableN.x=table1.x AND table1.x='A'". In other words, the design isn't just to make sure that table1.x contains only allowed values, but to query on the value of x too.
tablesN is about 20 tables. Typically these have between 30,000 and 400,000 rows with FKs to table1.x in them.
The objective of this exercise is look at the existing design and see
how it could be done better, to give the CBO a better chance of
producing a more efficient plan. At the moment there is no bottleneck -
the exercise is confirming scalability of the existing design and
explore options should we need to at a later stage.
Thanks
Barry
Received on Sat Sep 23 2006 - 05:20:01 CDT