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



At 10:46 2008-05-30 -0400, Tim Gornall wrote:
We have a SQLRPGLE program that dynamically builds the SQL
statement based on user imput. Sometimes the statement can
fairly large and when it is it uses very large amounts of
both processing and storage resources. I have seen it
gobble up processer, but was surprised yesterday when I
noticed the the system ASP when through the roof. The ASP
was up to 93 percent and climbing when I got word. As soon
as I ended the job the ASP came back down almost
immediately. I backed out the process completely until I
can be assured this won't happen again.

I have seen (okay, I confess: made <grin />) such blow-ups
only from a wrong or missing join condition. Take a look at
the statement that the program built.

I suppose it is possible the query engine would create an
enormous intermediate result on its way to a reasonable
final result, but I do not remember ever seeing such a
thing. If this seems to be happening to you, you may need
to reword the query. There are tools on the system, and
this list will help, too.

Cheers,
Terry,
rent-a-geek and database-bithead.



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.