From oracle-l-bounce@freelists.org Tue Jun 22 11:16:13 2004 Return-Path: Received: from air189.startdedicated.com (root@localhost) by orafaq.com (8.11.6/8.11.6) with ESMTP id i5MGFm101248 for ; Tue, 22 Jun 2004 11:15:58 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i5MGFc601214 for ; Tue, 22 Jun 2004 11:15:48 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id AC61C72CB18; Tue, 22 Jun 2004 10:59:17 -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 05235-49; Tue, 22 Jun 2004 10:59:17 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EB50772CB03; Tue, 22 Jun 2004 10:59:16 -0500 (EST) Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 22 Jun 2004 10:57:54 -0500 (EST) X-Original-To: oracle-l@freelists.org Delivered-To: oracle-l@freelists.org Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DC9F772C4E4 for ; Tue, 22 Jun 2004 10:57:53 -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 05689-12 for ; Tue, 22 Jun 2004 10:57:53 -0500 (EST) Received: from mail.acelerate.com (mail.acelerate.com [200.105.128.132]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id 1B88672C42F for ; Tue, 22 Jun 2004 10:57:53 -0500 (EST) Received: (qmail 12389 invoked from network); 22 Jun 2004 16:19:16 -0000 Received: from dazasoftware.com (HELO cachitoss) (200.105.151.94) by 0 with SMTP; 22 Jun 2004 16:19:16 -0000 MIME-Version: 1.0 Message-Id: <40D85B08.000001.02400@CACHITOSS> Date: Tue, 22 Jun 2004 12:15:04 -0400 Content-type: text/plain; charset=iso-8859-1 X-Mailer: IncrediMail (3001524) From: "Juan Carlos Reyes Pacheco" References: <00135E0349FB494EBB1D6B582EFCFAF2C7822C@NBNOTOCEXCH3.nesbittburns.ca> To: Subject: RE: Slow running Query. X-FID: PLAINTXT-NONE-0000-0000-000000000000 Content-Transfer-Encoding: 8bit X-Priority: 3 X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 3321 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: jreyes@dazasoftware.com Precedence: normal Reply-To: oracle-l@freelists.org X-list: oracle-l X-Virus-Scanned: by amavisd-new at freelists.org Hi, I will do t he following Try creating function indexes on composed columns you are queryin and tellme if this improves something For example you are using as_date in the where column, but you don't have a index on substr(ca_date,1,4,.... Only to avoid unncesary plsql work 1. instead sum(nvl(column,0)) I'll use nvl(sum(column),0 2. instead of decode use case ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------