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



There's an implied index on the primary key of a file. So the database engine didn't touch the file at all, it just read straight from the index.

Opening a result set doesn't fetch all the rows, just the first handful. The rest are fetched as you "next()" through the result set. So you'd probably get the same response whether the table had half-a-million rows or thirty or thirty million.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of James H. H. Lampert
Sent: Tuesday, July 02, 2013 4:49 PM
To: Java Programming on and around the IBM i
Subject: Re: JDBC equivalent to RPG SETLL or CHAIN?

Here's a thought:

I just tried this from Squirrel, on my WinDoze box (which is far more "old-and-busted" than "new hotness," which should surprise nobody who knows me). I found that I could open and fetch a result set of just the keyfield of an entire file with 554892 active records (and some 80-odd deleted ones), in 6 seconds flat. (The same thing with a 24047-record file gave sub-second response.) Perhaps I could use that to tell me where I am, relative to the entire file . . .

--
JHHL
--
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-Ups:
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.