Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 25901 invoked from network); 3 Mar 2007 10:38:53 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 3 Mar 2007 10:38:53 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 03253626400;
 Sat,  3 Mar 2007 11:37:32 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 02174-08; Sat, 3 Mar 2007 11:37:31 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6B85B62616B;
 Sat,  3 Mar 2007 11:37:31 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Sat, 03 Mar 2007 11:02:13 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 240B2626FED
 for <oracle-l@freelists.org>; Sat,  3 Mar 2007 11:02:13 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 31196-05 for <oracle-l@freelists.org>;
 Sat, 3 Mar 2007 11:02:13 -0500 (EST)
Received: from web60419.mail.yahoo.com (web60419.mail.yahoo.com [209.73.178.147])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id 9F1E6626FDE
 for <oracle-l@freelists.org>; Sat,  3 Mar 2007 11:02:11 -0500 (EST)
Received: (qmail 71429 invoked by uid 60001); 3 Mar 2007 16:03:32 -0000
X-YMail-OSG: LNFZ.q8VM1nuRGGklCjRHCQzuHFIzOVozwJCU18ZzCPlK_3E655_luhiEnj86M2C7JDOZTgLvX2nclaQvRabWm9lzLAGA4byAz_TfE6R.QES_c6__SJmKicqvjjFg5geNsAwnm_NnrCTbCK9
Received: from [65.34.218.204] by web60419.mail.yahoo.com via HTTP; Sat, 03 Mar 2007 08:03:26 PST
X-RocketYMMF: cosmini
Date: Sat, 3 Mar 2007 08:03:26 -0800 (PST)
From: Cosmin Ioan <cosmini@bridge-tech.com>
Subject: DW loading of Ora Apps
To: oracle-l@freelists.org
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-121083562-1172937806=:86343"
Message-ID: <457448.86343.qm@web60419.mail.yahoo.com>
X-archive-position: 46294
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: cosmini@bridge-tech.com
Precedence: normal
Reply-to: cosmini@bridge-tech.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at avenirtech.net
--0-121083562-1172937806=:86343
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

hi all, 
   
  I was wondering if the DW gurus out there can shed light (as in "how it is done in big bad DW shops") on something of a pesky problem that I’m having, with a big Ora Apps scenario: we’re trying to pull in data for any and all records in a view that have records that have changed in **any** table after a particular date such that (a very basic example):
   
  select * from tableA A, tableB B, tableC C, TableD D
where a.col1=b.col1 and b1.col2=c.col2 and c.col3=d.col3 and
(A.last_update_date >= trunc(sysdate) OR
B.last_update_date >= trunc(sysdate) OR
C.last_update_date >= trunc(sysdate) OR
D.last_update_date >= trunc(sysdate))
   
  so, basically, because of the “OR” clauses, there’s full table scans on just about every table — rightfully so, I believe; 
   
  When these tables are into the millions of records, this is an unreasonable/untunable query — it seems.
   
  One cannot use “AND” because, let’s say, when retrieving data for a child table, a parent’s record might be outside of the date range (”previous dates”) sought, so hence the thought of using “OR’s” 
   
  any thoughts/suggestions? — this is just a small subset/example, however the real example has about 8 tables with the “OR’s” … which to me, the problem seems untunable… or the approach, at least…
   
  thanks much for any feedback into this pesky "OR" issue 
Cos

--0-121083562-1172937806=:86343
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div>hi all, </div>  <div>&nbsp;</div>  <div>I was wondering if&nbsp;the DW gurus out there&nbsp;can shed light (as in "how it is done in big bad&nbsp;DW shops") on something of a pesky problem that I’m having, with a big Ora Apps scenario: we’re trying to pull in data for any and all records in a view that have records that have changed in **any** table after a particular date such that (a very basic example):</div>  <div>&nbsp;</div>  <div>select * from tableA A, tableB B, tableC C, TableD D<BR>where a.col1=b.col1 and b1.col2=c.col2 and c.col3=d.col3 and<BR>(A.last_update_date &gt;= trunc(sysdate) OR<BR>B.last_update_date &gt;= trunc(sysdate) OR<BR>C.last_update_date &gt;= trunc(sysdate) OR<BR>D.last_update_date &gt;= trunc(sysdate))</div>  <div>&nbsp;</div>  <div>so, basically, because of the “OR” clauses, there’s full table scans on just about every table — rightfully so, I believe; </div>  <div>&nbsp;</div>  <div>When these tables are into the millions of records, this
 is an unreasonable/untunable query — it seems.</div>  <div>&nbsp;</div>  <div>One cannot use “AND” because, let’s say, when retrieving data for a child table, a parent’s record might be outside of the date range (”previous dates”) sought, so hence the thought of using “OR’s” </div>  <div>&nbsp;</div>  <div>any thoughts/suggestions? — this is just a small subset/example, however the real example has about 8 tables with the “OR’s” … which to me, the problem seems untunable… or the approach, at least…</div>  <div>&nbsp;</div>  <div>thanks much for any feedback into this pesky "OR"&nbsp;issue <IMG class=wp-smiley alt=;-) src="http://jonathanlewis.wordpress.com/wp-includes/images/smilies/icon_wink.gif"><BR>Cos</div>
--0-121083562-1172937806=:86343--
--
http://www.freelists.org/webpage/oracle-l


