|
Douglas, Embedded SQL is one of those beasts that wears many faces.... You have certain performance issues if you're dealing with dynamic (or Extended Dynamic) SQL that you won't have for static SQL. Using static SQL with parameter markers or host variables for selection criteria would usually perform better than a dynamic (prepared) statement, because the SQL templates can be retained in the "package" for the next run. There's also a new consideration, in that Query/400, QMQRY, OPNQRYF, and so forth can only use what's known as CQE (Classic Query Engine), where embedded SQL may be allowed to used the new SQE (SQL Query Engine) which contains all the new optimized code that the iSeries has inherited from other DB2 platforms. SQL performance is still a bit like alchemy... It's more an art than a science, but mastery of the techniques can pay off handsomely. Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-297-2863 or ext. 1863 -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Douglas W. Palme Sent: Wednesday, December 21, 2005 11:05 AM To: Mid Range List Subject: embedded SQL versus Query Are there any performance issues to consider when looking at embedded SQL versus Query400? It seems that Query400 might actually run faster, but I can definitely see the advantages of creating an SQL statement on the fly per se. Thoughts, comments? Tell me I'm nuts....ok skip the last one, that's a given. If you bought it, it was hauled by a truck - somewhere, sometime.
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.