Out of memory rendering large DB field

Hey all,

I seem to recall a discussion about possible solutions to this type of problem, but I've be unable to locate them in the archives.

One page of our rails application displays a very large DB field (of XML data) on the page. Unfortunately this is occasionally causing an out of memory issue on the server.

Anyone have hints or tricks for reading from a DB field as an unbuffered stream instead of trying to load huge strings?

Thanks! -Justin Wienckowski jwinky@stacksafe.com