Re: Handling large record sets in JDBC/web app

From: Charles Fineman (cfineman-no&spam_at_yahoo.com)
Date: 03/24/04

  • Next message: Charles Fineman: "Re: Oracle 8 Performance Scrollable Result Sets Last/First"
    Date: Wed, 24 Mar 2004 11:25:07 -0500
    
    

    I've used these two previously:

    1) Use a temp table

    You mentioned this. It's a fine solution but, of course, you need to
    worry about clearing it out. I won't get into the various techniques
    you can use to clear cruft out.

    2) Use randomly addressable ResultSet and a "look ahead" paginator

    I wrote a class that knew about pagination. Client code would request
    a specific page. The class would keep N pages of data in memory. If it
    had to it would re-run the query, move to the correct row in the result
    set, and re-fill it's cache before returning. This would be stored in a
    servlet session.

    With #1 you get a snapshot of the data... obviously #2 will have "odd"
    behavior if the source tables are changing between fills of the cache.

    You can, of course, combine #1 and #2.


  • Next message: Charles Fineman: "Re: Oracle 8 Performance Scrollable Result Sets Last/First"

    Relevant Pages

    • Re: /var got really big
      ... Others have suggested you clean the apt cache. ... apt-cacher cache rather than have to download the same packages as your ... LVM makes shrinking or expanding filesystems much easier. ... still have plenty of free space on /var so you don't have to worry for ...
      (Ubuntu)
    • Re: Win2003 DNS cache lookup errors hotfix
      ... so I'll try clearing the cache on the machine ... Actually it is a registry change. ... dnscmd command, the response is: ... >>From the article you posted it says that clearing the ...
      (microsoft.public.win2000.dns)
    • RE: DNS Slowness
      ... Restarting the service or clearing the cache DOES NOT make ... My GFi Mail Essentials is also generating errors indicating that ... > I have some kind of DNS problem. ...
      (microsoft.public.windows.server.sbs)
    • Re: how do i paste a jpeg file onto microsoft word
      ... Yes I tried clearing the cache, but each time I do the computer freezes up. ... then have to hit Ctrl+Alt+ Del to get the system running again. ... > Microsoft MVP ...
      (microsoft.public.word.docmanagement)
    • Re: (NBC) Internet question
      ... the second entry in my first post should be: ... Have you tried clearing your browser's cache? ... could not connect to the www or to my VPN. ...
      (rec.music.artists.springsteen)