G
gfrommer
Hello Everyone,
I'm writing a report server that uses servlets and JSP's running
on Apache Tomcat. The reports are XML files that users can submit, and
are stored on the servers file system. Since there will be many, many
reports entered into this server, to save on space I loaded all
completed XML reports into a byte[] buffer (running the XML text
through a ZipOutputStream). So all completed reports are stored in
memory in a compressed zip buffer until the report is needed. This
byte[] buffer is contained in a ReportMetaData class with several other
meta data information describing the report.
When the report is requested from the ReportMetaData object, the XML
text is unzipped, then parsed in my ReportXMLParser class to give me
the final ReportObject. Any thoughts on my memory management technique?
Is there a more efficient way of doing this?
OK... So, the problem is, I want to be able to do FREE-FORM TEXT
searches on all of my completed reports. How can I search a zipped
buffer for a specific text string without having to uncompress the
buffer (ruining my memory savings). I could store text keywords with my
meta data object, but thats not really free-form... and that's what the
users are really hopeing for.
Thanks,
Greg Frommer
(e-mail address removed)
I'm writing a report server that uses servlets and JSP's running
on Apache Tomcat. The reports are XML files that users can submit, and
are stored on the servers file system. Since there will be many, many
reports entered into this server, to save on space I loaded all
completed XML reports into a byte[] buffer (running the XML text
through a ZipOutputStream). So all completed reports are stored in
memory in a compressed zip buffer until the report is needed. This
byte[] buffer is contained in a ReportMetaData class with several other
meta data information describing the report.
When the report is requested from the ReportMetaData object, the XML
text is unzipped, then parsed in my ReportXMLParser class to give me
the final ReportObject. Any thoughts on my memory management technique?
Is there a more efficient way of doing this?
OK... So, the problem is, I want to be able to do FREE-FORM TEXT
searches on all of my completed reports. How can I search a zipped
buffer for a specific text string without having to uncompress the
buffer (ruining my memory savings). I could store text keywords with my
meta data object, but thats not really free-form... and that's what the
users are really hopeing for.
Thanks,
Greg Frommer
(e-mail address removed)