× 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.



Alan,

Surely it won't be *that* bad. After all, the object resolution will only
take place once; the first time the UDF (program) is called. After that, it
should be almost as quick as a service program procedure call. Or is it
different when SQL is brought into the mix?

Rory


On 5/9/07, Alan Campin <Alan.Campin@xxxxxxxxxxxxxxxx> wrote:

Michael, I don't know if this has already come through to you but you
are looking at severe performance penalties using a dynamically called
program inside of service program.

IBM originally implemented UDF's as programs but it was too slow and
they added the ability for them to be service programs.

If you use your UDF in an SQL statement and you have to process a
100,000 records, you are looking at 100,000 dynamic calls.

A service program procedure call is nano-seconds vs a 100 milliseconds
for a program call.

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.