... but you are not using the same data?
The optimizer may use different access paths/indexes or a table scan instead
of an index access when accessing different data (even with the same
program).
That's often a problem for software manufacturers to provide the
correct/optimal indexes
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von David FOXWELL
Gesendet: Tuesday, 08. March 2011 13:13
An: RPG programming on the IBM i / System i
Betreff: RE: Embedded sql without index faster than with index
Two versions of the same program, one running slower than the other.
Recompiled the slow runner and it now performs like the faster version.
Smells like a bug.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.