Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: tough choices
Mark Townsend wrote:
> Serge Rielau wrote:
>
>> In a "partitioned" view case, which is the one we are debating here, >> The compiler will find that the same indices are present for all tables. >> The SELECT FROM V WHERE <input> with V = UNION ALL (T1, ..., Tn) will >> be rewritten into a SELECT FROM T(i) with i = foo(<input>) and >> associated indexes Ix(i)
> What happens if a constraint is not in place at the time of the DML ?
Sorry to be blunt: But that is a stupid comment if I ever heard one.
Each partition in a range partitioned table obeys the range, dohhh!
If that's no comnstraint what is?
For a UNION ALL view the partitioning is described in constraints.
For partitioned tables in the table DDL.
I wasn't even drawing a comparison between DB2 UNION ALL vs. Oracle
range partitioning. I'm simply describing what DB2 UNION ALL views do
and that it's more than one would ordinarily expect and that they
possess many aspects of what one would expect only from table tange
partitioning.
If you feel the need for a p***ing contest do it alone.
>> Statistics are also computed with some magic.
I've got a product to deliver. I take time to teach, I won't waste my time on: "But my daddy drives...."
Cheers
Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto LabReceived on Thu Jun 24 2004 - 00:12:41 CDT