# Out of memory rendering large DB field

**URL:** <https://www.ruby-forum.com/t/out-of-memory-rendering-large-db-field/124835>\
**Category:** Rails\
**Created:** [January 2, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/out-of-memory-rendering-large-db-field/124835 "2008-01-02T23:56:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Wienckowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Justin\_Wienckowski](https://www.ruby-forum.com/u/Justin_Wienckowski)\
**Post date:** [January 2, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/out-of-memory-rendering-large-db-field/124835/1 "2008-01-02T23:56:20Z")

</div>

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  
removed\_email\_address@domain.invalid
