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



Only the overhead of the program call to SQL, several milliseconds. Why not
just do all the deletes at one time? Just OR you where's and use a table for
multiple companies so the whole thing is done in one call?

On Tue, Sep 13, 2011 at 3:13 PM, Robert Munday <rwmunday@xxxxxxxxxxxxx>wrote:

I am looking for efficiencies and identifying where some processes can be
streamlined.



I have a number of RPG programs using SQL statements in purge and delete
programs which are being called five times, once for each company. Many
of the SQL DELETEs are being performed on non-company specific fields
such
as dates. Deleting by dates would cross all company records.



Are there any performance hits for attempting to do SQL DELETEs multiple
times where the first call of the program has already deleted the records
and subsequent calls are redundant? I would think not but every
nanosecond counts.



Thanks,







Robert Munday

Munday Software Consultants

Montgomery, AL

on assignment in New Albany, OH
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.