Tim,
I did some testing and regardless of where the content comes from (servlet 
or temp file) the rendering of very large HTML tables will take a long time 
on the browser. As the table size increases the time to render it increases 
exponentially. I would then say that my suggestion of writing to a 
temporary file will not give you much benefit at all. In my test, I had my 
servlet output 3000 rows in a table consisting of this:
ABCDEFG ABCDEFG ABCDEFG ABCDEFG ABCDEFG ABCDEFG ABCDEFG ABCDEFG

It took about 30 sec. to completely render it on the browser.
The file size generated was 461kb. I'm guessing that the size of your data 
would produce much larger files. You might find that compressing the 
servlet output might help with the transfer speed but then some time will 
be spent compressing and uncompressing the data. I also found that the HTML 
display time can be improved slightly by outputting many smaller tables 
(~100 rows each) rather than a single monolithic table.

Regards,

Richard

Richard


At 01:50 PM 5/10/2002 -0400, you wrote:
>Hey Richard,
>         Yea thats a solution that we've been currently investigating.
>Problem with that is that we dont want the files to just accumulate on the
>server so we need a mechanism to delete the files. But how do we know when
>to delete them?
>Any experience with something like this? I know I could probably just run a
>thread and wait a certain amount of time but I really dont want threads
>running in my Server.
>Thanks,
>-Tim
>
>-----Original Message-----
>From: Richard Yee [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 10, 2002 1:46 PM
>To: [EMAIL PROTECTED]
>Subject: Re: Large Table
>
>
>Gin,
>Why don't you just have the servlet write the data out as a temporary file
>and then return a link to it. You will then be able to close the connection
>sooner and possibly compress the data to make the download go faster.
>
>Regards,
>
>Richard
>
>At 01:08 PM 5/10/2002 -0400, you wrote:
> >that's actually exactly what it is.
> >it's a report that gets displayed online.
> >It's offered in both tsv and html format.
> >but right now, we're having alot of problems with the time it takes to send
> >both to the client
> >html is actually worse than the tsv method by almost 10xs.
> >Even so, i'm trying to find ways to send the tsv faster as well but that
> >doesnt appear likely (how much faster than setting contenttype to excel and
> >sending a String to out can u get??).
> >-Tim
> >
> >-----Original Message-----
> >From: Dror Matalon [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, May 10, 2002 12:57 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: Large Table
> >
> >
> >Actually sending it as XML and having the client render it using
> >an XSL might make it much faster assuming the client does the
> >transformation. IE does that, I'm not sure about the latest versions
> >of Netscape.
> >
> >The reason it takes so long is that the browser needs to make a lot of
> >decisions and rendering calculations to figure out how to display
> >the table "correctly." It can't do these until it's seen *ALL* of the
> >data. For instance the width of the columns could be affected by
> >the amount of text you have in the last row of your table.
> >
> >You don't need to use javascript to do this. AFAIK the XSLT should work
> >out of the box.
> >
> >By the way, why do you need to handle this many rows? The only
> >reason that I can think of that would justify this exercise is if
> >you need to print a report.
> >
> >Dror
> >
> >On Fri, May 10, 2002 at 11:31:56AM -0400, Chen, Gin wrote:
> > > Thanks for the many great inputs on this.
> > > Just out of curiosity, perhaps the XML will help out a bit though. I
>also
> > > have the data sent as a TSV (not file just String displayed with excel
>as
> > > the content type)
> > > and it displays MUCH faster than the HTML version.
> > > But then to display it on the client side as useful text, I'll have to
>set
> > > up with an XSL. Would the translation take as long or longer than the
> > > current method of just sending HTML? Anyone have experience in the
> > > performance of it this way with large amounts of data?
> > > I know I can use javascript and client side translation of XML using the
> > > Microsoft XSLT plugin but I have the restriction of not using any client
> > > side installs.
> > > Does anyone know a way to translate an XML clientside to HTML without
> >using
> > > a plugin?
> > >
> > > Thanks,
> > > -Tim
> > >
> > > -----Original Message-----
> > > From: Michael Weller [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 10, 2002 7:55 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Large Table
> > >
> > >
> > > hi!
> > > i think this wouldn't speed up the displaying progess, because the
>client
> > > still needs to download all the data before it can display it (and now
> > > there's another step involved: the client-side xml rendering).
> > > split the table up in multiple ones, so the client can display one small
> > > table after the other.
> > >
> > > -mw
> > >
> > > ----- Original Message -----
> > > From: Silvio dos  <mailto:[EMAIL PROTECTED]> Passos Neto
> > > To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > > Sent: Friday, May 10, 2002 1:36 PM
> > > Subject: Large Table
> > >
> > > Hi,
> > >
> > > If you can put the table data into a XML document, you'll can write the
> > > table using a JavaScript to read the XML. Then, you will write the table
> >on
> > > client-side.
> > >
> > > Is it works?
> > >
> > > Silvio dos Passos Neto
> > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > > Webwork M�dia Interativa
> > >
> >
> >--
> >Dror Matalon
> >Zapatec Inc
> >1700 MLK Way
> >Berkeley, CA 94709
> >http://www.zapatec.com
> >
> >___________________________________________________________________________
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> >of the message "signoff SERVLET-INTEREST".
> >
> >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> >Resources: http://java.sun.com/products/servlet/external-resources.html
> >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >___________________________________________________________________________
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> >of the message "signoff SERVLET-INTEREST".
> >
> >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> >Resources: http://java.sun.com/products/servlet/external-resources.html
> >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to