From: Thomas W. <tho...@gm...> - 2010-03-04 12:32:19
|
When we have a long running query and we produce the content incrementally, it will be great to flush the content available so far down the wire ( so the user will see the content as it comes ). The solution is using "chunked encoding". Bellow is a quote borrowed from http://www.httpwatch.com/httpgallery/chunked/ "Chunked encoding is useful when a large amount of data is being returned to the client and the total size of the response may not be known until the request has been fully processed. An example of this is generating an HTML table of results from a database query. If you wanted to use the * Content-Length* header you would have to buffer the whole result set before calculating the total content size. However, with chunked encoding you could just write the data one row at a time and write a zero sized chunk when the end of the query was reached." Is there a way to implement "chunked encoding" in eXist? Thomas ------ Thomas White Mobile:+44 7711 922 966 Skype: thomaswhite gTalk: thomas.0007 Linked-In:http://www.linkedin.com/in/thomaswhite0007 facebook: http://www.facebook.com/thomas.0007 |