Just what gets through both selects. The query is performed on the SQL host (IBMi) and what comes back is just the result set. The result set is meted out in chunks, so if you only read the first record and closed the connection, the umpteenth wouldn't cross the wire unless you had the block size set really high.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of James Lampert
Sent: Tuesday, April 19, 2011 4:08 PM
To: 'Java Programming on and around the IBM i'
Subject: How does access through JDBC work, anyway?

Suppose we do a SELECT on a VIEW, and the VIEW itself contains a SELECT, perhaps one that calls a scalar UDF (can we do this?).

The SELECT within the VIEW would be to censor the data, so that the user doesn't see records he/she isn't entitled to; the SELECT *on* the VIEW would be to find the records he/she is interested in.

Just how much data gets sent to the JDBC client? The whole megillah?
Just what the VIEW returns after its internal SELECT? Or just the records that get through both SELECTs?

This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.