× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The result isn't used in a WHERE.

My reference to a SELECT was because in Plan Cache this UDF was the most expensive and the distant second place was a SELECT.



-----Original Message-----
From: Darren Strong [mailto:darren@xxxxxxxxx]
Sent: Friday, May 10, 2019 9:20 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: UDF bad performance

I second that the DETERMINISTIC clause should make a difference if you're not already using it. I'm also wondering how you're using this returned value. Is it simply in the select portion of the statement, or are you using it in the where clause, where you weren't doing that in your comparison statement. I ask, because when you say "longer than an index-based select statement", it implies either an advanced index, or, you're not using the right term.


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Salsman, Michael
Sent: Friday, May 10, 2019 10:13 AM
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: UDF bad performance

Try defining the function as DETERMINISTIC.

Michael Salsman



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.