Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: SELECT x FROM DUAL is bad for system performance?

RE: SELECT x FROM DUAL is bad for system performance?

From: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Thu, 13 Dec 2001 10:05:13 -0800
Message-ID: <F001.003DC115.20011213095106@fatcity.com>

The
problem is when you try to evaluate an expression by using: SELECT expression FROM dual
If you
do this sometimes in a query that utilizes PQO on a big table then this expression could be evaluated for every row retrieved!
<FONT face=Arial color=#0000ff

size=2> 
<FONT face=Arial color=#0000ff

size=2>Sometimes I still have to do it this way because of other performance reasons that need a week to explain but instead I use the hint PUSH_SUBQ to evaluate it first and once.
<FONT face=Arial color=#0000ff

size=2> 
<FONT face=Arial color=#0000ff

size=2>Regards,
<FONT face=Arial color=#0000ff

size=2> 
<FONT face=Arial color=#0000ff

size=2>Waleed

  <FONT face=Tahoma
  size=2>-----Original Message-----From: Thomas Jeff   [mailto:ThomasJe_at_tce.com]Sent: Thursday, December 13, 2001 9:00   AMTo: Multiple recipients of list ORACLE-LSubject:   SELECT x FROM DUAL is bad for system performance?   On page 92 of Oracle Performance Tuning   101, there's a recommendation to
  avoid the use of SELECT X FROM DUAL, claiming that it can '..use up system   performance in a hurry', but does
  not go on to elaborate as to exactly *why*.   Could someone shed a bit more light on   this?   Thanks.
  <FONT face="Courier New"

  size=2>-------------------------------------------- <FONT 
  face="Courier New" size=2>Jeffery D Thomas <FONT face="Courier New"   size=2>DBA Thomson Information
  Services Thomson multimedia
  Inc.
  Email: thomasje_at_tce.com <FONT
  face="Courier New" size=2>DBA Quickplace: <A target=_blank   href="http://gkmqp.tce.com/tis_dba">http://gkmqp.tce.com/tis_dba   <FONT face="Courier New"
  size=2>-------------------------------------------- <FONT 
  face="Courier New" size=2>  Received on Thu Dec 13 2001 - 12:05:13 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US