|
Using JDBC, I want to retrieve rows from an employee master file located on a server. These rows I will then load into a List. This List will then be displayed to the user, where they will position/scroll to the desired employee. When the number of employees in the database is relatively small, this is easy. I can retrieve all the rows with one request and then load the List. However, if the number of employees in the database is very large (say, 100,000), then I have a problem. Even if I could, I wouldn't want to attempt to retrieve all 100,000 rows and then load them all into the List. Yet, as the user is repositioning/scrolling through the List, I want it to appear to them that it does contain all 100,000 rows. Is there a commonly accepted way of retrieving/presenting a large table in this manner? It almost seems that I should be retrieving some new subset of rows each time the user uses the scroll bar or repositions the list (using a text field). I'm not necessarily looking for example code. A few words outlining how one might accomplish this, or suggested links of where I might find the information, would go along way. Thank you. +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
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.