[stringtemplate-interest] Generating big documents

Adam Bennett adamb at videx.com
Wed Dec 27 10:51:18 PST 2006


Our web application has the ability to generate reports as HTML or XML documents.  These documents are potentially very large (20MB with some of our test data).  Early on we had problems with the server running out of memory while generating these because all the data was brought into memory from the database.  Our solution was to stream the results from the database while generating the document.  
   
Can StringTemplate be used to generate such documents?  I cannot see how to avoid bringing all the data into memory because StringTemplate requires all data to be passed as an attribute.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20061227/8fab413b/attachment.html 


More information about the stringtemplate-interest mailing list