On 21-07-2008 at 13:04, Ken wrote: > Hello all, I have a very unique topic. First I work for a guy who doesnt know > anything about web apps. I need to render about 30,000 rows without > pagination > into a scrollable table with sorting capabilities. Right now it is set up so > that the browser (IE) does all of the work using xml. What would be my best > way > if I wanted to use hibernate(caching blah blah I got that taken care of) and > stripes (Streaming JSON or JavaScriptRes) back to the client so that the list > will be ready the fastest. IE no pagination, this guy wants it rendered fast, > list must appear as quickly as possible and I want to use stripes.
Your best bet is to use pagination at the server end: you first insert the number of results into the script when rendering the page (or even AJAXify that). Then, the AJAX script retreives the rows in batches of, say, 20. This ensures that there will not be too much of a delay when parsing the result, but not too much overhead anyway. Vary this number until speed is optimal. The server probably should, when determining the number of results, cache the results. You can put it in the session using an ArrayList for fast acess to a specified index. Also, you'll want to determine the attribute name based on the search criteria (if any), to ensure that multiple simultanious requests will work. Oscar -- ,-_ DRM = Customer Control = Customer Lock-in = /() ) Death of the free market. (__ ( =/ () ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users