RE: How might I do this in Cocoon?

2005-02-25 Thread Lopke, Michael
Thanks Con. :-) -Original Message- From: Conal Tuohy [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 4:22 PM To: users@cocoon.apache.org Subject: RE: How might I do this in Cocoon? Mike Lopke wrote: I have a java servlet that queries a database and produces xml. Part

Re: How might I do this in Cocoon?

2005-02-11 Thread Geert Josten
Hi Michael, How large is large? Could you give file size and number of entries? Reading it using DOM takes about 10 times as much memory as in file size. So trying to avoid that could be one concern. On the other hand, perhaps the HashMap implementation is not efficient enough for your needs. I

RE: How might I do this in Cocoon?

2005-02-11 Thread Lopke, Michael
Josten [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 2:07 PM To: users@cocoon.apache.org Subject: Re: How might I do this in Cocoon? Hi Michael, How large is large? Could you give file size and number of entries? Reading it using DOM takes about 10 times as much memory as in file size

Re: How might I do this in Cocoon?

2005-02-11 Thread Geert Josten
Hi Mike, Hi Geert, The file is huge: ~280 M. Number of entries ~164 K. If I just try to pass the file through Cocoon, I run out of Memory. :-) Only when you build a DOM. If you would stream it, it shouldn't be a problem. Though, make sure Cocoon won't try to cache the result! :-D The HashMap

RE: How might I do this in Cocoon?

2005-02-11 Thread Conal Tuohy
Mike Lopke wrote: I have a java servlet that queries a database and produces xml. Part of this includes translating some of the data, like product numbers, using a HashMap. The HashMap is built from an xml source and is very large. Populating it takes a long time so I set it up using