Re: Function In Select Statment

2002-01-29 Thread Jared . Still

When posing a question to the list, there are a number of
pieces of information that are required:

The OS platform and version
The Oracle version

Other things that are relevant,

For instance, what does the function do?  If it reads 10 million rows
from a table, I would expect it to be slow.

If it's on a version 7 database, there's nothing you can do to make it 
fast,
except don't use it.

Jared







Hamid Alavi <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
01/29/02 08:05 AM
Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
Subject:Function In Select Statment


Hi List,
One of our developer using function in his select statment but the problem
is when he is using order by one of the function results column the query 
is
very slow, Is there any way to use hint for function or some thing to make
quesry faster.
Thanks in advance



Hamid Alavi
Office 818 737-0526
Cell818 402-1987

The information contained in this message and any attachments is intended
only for the use of the individual or entity to which it is addressed, and
may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
disclosure under applicable law. If you have received this message in 
error,
you are prohibited from copying, distributing, or using the information.
Please contact the sender immediately by return e-mail and delete the
original message from your system.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hamid Alavi
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Function In Select Statment

2002-01-29 Thread Ashoke Mandal

For Oracle 8i use functiion based index. 

Thanks,
Ashoke

>>> [EMAIL PROTECTED] 01/29/02 10:05AM >>>
Hi List,
One of our developer using function in his select statment but the problem
is when he is using order by one of the function results column the query is
very slow, Is there any way to use hint for function or some thing to make
quesry faster.
Thanks in advance



Hamid Alavi
Office 818 737-0526
Cell818 402-1987

The information contained in this message and any attachments is intended
only for the use of the individual or entity to which it is addressed, and
may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
disclosure under applicable law. If you have received this message in error,
you are prohibited from copying, distributing, or using the information.
Please contact the sender immediately by return e-mail and delete the
original message from your system.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Hamid Alavi
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ashoke Mandal
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: Function In Select Statment

2002-01-29 Thread MacGregor, Ian A.

That may indeed help, if you're very lucky.  However forcing it to use that index 
could also result in an inefficient query path.  

Another possibility, also with drawbacks, is to have a materialized view which 
contains the function results as a column of the view.

Ian MacGregor
Stanford Linear Acclerator Center
[EMAIL PROTECTED]

-Original Message-
From: Ron Rogers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 8:36 AM
To: Multiple recipients of list ORACLE-L


Hamid,
 Why not create a function based index on the column that is being and
the data returned will be faster. I do not know if it will help the sort
for the order by but the data returned will be available faster. What
does your sort area look like? Is it to small to handle the sort and
paging out to disk?
ROR mª¿ªm

>>> [EMAIL PROTECTED] 01/29/02 11:05AM >>>
Hi List,
One of our developer using function in his select statment but the
problem
is when he is using order by one of the function results column the
query is
very slow, Is there any way to use hint for function or some thing to
make
quesry faster.
Thanks in advance



Hamid Alavi
Office 818 737-0526
Cell818 402-1987

The information contained in this message and any attachments is
intended
only for the use of the individual or entity to which it is addressed,
and
may contReceived: from CONNECT-MTA by galotterain information that is PRIVILEGED, 
CONFIDENTIAL and exempt
from
disclosure under applicable law. If you have received this message in
error,
you are prohibited from copying, distributing, or using the
information.
Please contact the sender immediately by return e-mail and delete the
original message from your system.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Hamid Alavi
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ron Rogers
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: MacGregor, Ian A.
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: Function In Select Statment

2002-01-29 Thread Ron Rogers

Hamid,
 Why not create a function based index on the column that is being and
the data returned will be faster. I do not know if it will help the sort
for the order by but the data returned will be available faster. What
does your sort area look like? Is it to small to handle the sort and
paging out to disk?
ROR mª¿ªm

>>> [EMAIL PROTECTED] 01/29/02 11:05AM >>>
Hi List,
One of our developer using function in his select statment but the
problem
is when he is using order by one of the function results column the
query is
very slow, Is there any way to use hint for function or some thing to
make
quesry faster.
Thanks in advance



Hamid Alavi
Office 818 737-0526
Cell818 402-1987

The information contained in this message and any attachments is
intended
only for the use of the individual or entity to which it is addressed,
and
may contReceived: from CONNECT-MTA by galotterain information that is PRIVILEGED, 
CONFIDENTIAL and exempt
from
disclosure under applicable law. If you have received this message in
error,
you are prohibited from copying, distributing, or using the
information.
Please contact the sender immediately by return e-mail and delete the
original message from your system.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Hamid Alavi
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ron Rogers
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).