Re:
- From: "Carel-Jan Engel" <cjpengel.dbalert@xxxxxxxxx>
- To: oracle-l@xxxxxxxxxxxxx
- Date: Mon, 2 Aug 2004 12:31:07 +0200 (CEST)
And David should be Edgar......
Need another coffee.
Regards, Carel-Jan
===
If you think education is expensive, try ignorance. (Derek Bok)
===
> You can also create a function based index on TRUNC(last_update_date), but
> w/o any changes to your tables and/or indexes rephrasing the query to
> WHERE last_update_date BETWEEN TRUNC(SYSDATE - 1) AND TRUNC(SYSDATE -
> 1/86400)
> will make an index-range scan possible. The 1/86400 is to subtract 1
> second of the SYSDATE, to prevent including the 0:00:00 updates of today.
>
> Regards, Carel-Jan
>
> ===
> If you think education is expensive, try ignorance. (Derek Bok)
> ===
>
>
>
>> Hello expert,
>>
>> I have a table with 40 millions records and the last update date is
>> indexed. But when we use the
>> following where clause, it takes forever to run the report.
>>
>> WHERE TRUNC(last_update_date) = TRUNC(SYSDATE - 1)
>>
>> How to improve the performance? Do I need to create a new index field
>> on
>> the table with TRUNC(last_update_date)?
>> ----------------------------------------------------------------
>> Please see the official ORACLE-L FAQ: http://www.orafaq.com
>> ----------------------------------------------------------------
>> To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx
>> 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
>> -----------------------------------------------------------------
>>
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx
> 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
> -----------------------------------------------------------------
>
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx
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
-----------------------------------------------------------------
- References:
- SQL Tunning
- From: Wes Brooks
- Re: SQL Tunning
- From: Carel-Jan Engel
Other related posts:
- » [Fwd: PeopleSoft Financials 9.0 Upgrade Questions]
- » (no subject)
- » [no subject]
- » [Fwd: Hotsos Symposium Room Block Expires Feb. 23]
- » [no subject]
- » Re:
- » [Fwd: Re: Partitioning problems - Oracle 8.1.7.4]
- » **
- » [no subject]
- » [no subject]
- » [no subject]
- » [Fwd: Your e-mail message was blocked]
- » [no subject]
- » RE:
- » (no subject)
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » [no subject]
- » (no subject)
- » [no subject]
- » [Fwd: Re: Anyone running JFS2 Concurrent I/O with 9i on AIX 5.2?]
- » (без темы)
- » [Fwd: Re: Useful Oracle books]
- » Re:
- » (no subject)
- » Re: (no subject)
- » RE: (no subject)
- » RE: (no subject)
- » Re: (no subject)
- » [no subject]
- » RE:
- » RE:
- » RE:
- » [Fwd: RE:]
- » RE:
- » RE:
- » RE:
- » RE:
- » RE:
- » [Fwd: Re: Oracle 10g RAC on Linux - hardware confusion #@$!]
- » (no subject)
- » [Fwd: Re: I may never see this again. SGA]
- » [Fwd: RE: Has the Lists 'Mission Statement' Changed???]
- » [Fwd: Re: IDE for Oracle database]
- » [Fwd: RE: Job Scheduling Tool]
- » (no subject)
- » Re: (no subject)
- » [Fwd: Re: System Statistics and the CBO]
- » `
- » (no subject)
- » [Fwd: Re: Quick question re outer joins]
- » [Fwd: more on 'high cpu...']
- » Re:
- » Re:
- » [Fwd: Re: ANNOUNCE: Advanced DBI tutorial slides]
- » (no subject)
- » RE: (no subject)
- » Re: (no subject)
- » RE: (no subject)
- » [no subject]
- » Re:
- » RE:
- » RE:
- » RE:
- » [Fwd: Re: 10046 trace - unaccounted for time]
- » (no subject)
- » [no subject]
- » RE:
- » RE:
- » [stellr: Re: SUSE or Red Hat]
- » [Fwd: Re: Ora Doc in PDA]
- » [Fwd: Re: BAST in RAC]
- » (no subject)
- » [Fwd: Memorial Services for Stan Yellott]
- » [Fwd: Re: Altering dymanic SGA parameters and ORA-00376]
- » 試過跟學姊一起洗香香ㄇ....(限) - dba1 mcc
- » Re: - David Cheyne
- » Re: - Riyaj Shamsudeen
- » [Fwd: passwords in different instances] - Ingrid Voigt
- SQL Tunning
- From: Wes Brooks
- Re: SQL Tunning
- From: Carel-Jan Engel