| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles |
- Query by Slice, Parallel Execute, and Join: A Thread Pool Pattern in Java by Binildas Christudas - [Clicks: 24]
Pagination is a much-needed feature; one that's harder than it looks. For large datasets, reading all results into memory is impractical, if not dangerous, but only fetching small chunks can make it difficult to apply business logic across all results. Binildas C. A. shows how to combine the database's ROWNUM function with Java SE 5's thread pools to create highly effective pagination.
[Includes sample code]
http://today.java.net/pub/a/today/2008/01/31/query-by-slice-parallel-execute-join-thread-pool-pattern.html - Jan, 2008