|
I have it on good authority that DB2 UDB for iSeries in V5R2 does not have the ability to take advantage of the Not Fenced, Deterministic, No External attributes to cache the function calls. The good news is that support should be available in V5R3. Elvis -----Original Message----- Subject: SQL Deterministic UDF and File Read Count I have created an SQL UDF which is specified as Deterministic. The UDF is written in RPGLE and accesses a table as part of it's logic. When I do a Select statement in SQL and reference the UDF it returns the data as expected. The concern I have is regarding the file access count: it has the same number of accesses as there are number of records returned -- but the input parameters to the UDF were the same for each UDF access. Am I correct that there would be one access to the UDF's table corresponding to the first "call" and then since each subsequent call has the same parameter values it shouldn't access the table again? This is on a V5R2 system. Bill
As an Amazon Associate we earn from qualifying purchases.
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.